Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to create httpclient with certificate

httpclient is created in program.cs with code using System.Security.Cryptography.X509Certificates; internal class Program { public const string LhvClient = "lhvclient"; static void Main(...
Andrus's user avatar
  • 27.7k
0 votes
0 answers
11 views

How can I access the image Url from my API request in React?

I need to access the image URL for my products, when I retrieve the products it comes with all the payload yet when I insert it in a image tag it does not show up. <td className="py-2 px-4 ...
Blend's user avatar
  • 9
1 vote
1 answer
44 views

"The name "TextBox" does not exist in the current context" errors during a few tutorials

I want to make an ASP.NET web form that sends the text from a TextBox to a SQL database in Visual Studio. I found 2 tutorials for exactly what I wanted, but both of them have the same errors halfway ...
thedisplayedName's user avatar
0 votes
0 answers
32 views

C# ASP.NET GridView - Row_Updating issues trying to get values from cells in the Gridview with NullReferenceException

There are 2 parts to my question. Please bear with me... just learning this stuff. I have a GridView that allows editing, which will update a database table. Issue #1 is that I cannot seem to get the ...
Amy 's user avatar
  • 1
0 votes
0 answers
7 views

Issues handling Image Url for blob files on Firebase

I am having issues on handling blob files as imageurl in the notification payload for firebase. The file that got uploaded on azure storage had spaces and special characters which got saved as below &...
Aman kumar's user avatar
0 votes
0 answers
40 views

Win32Exception: No connection could be made because the target machine actively refused it. and SqlException: Login failed for user 'SA' [duplicate]

I’m trying to run an ASP.NET project on Microsoft Visual Studio, but I get this error every time I run the project and try to sign up on the web. Before this, I used Docker and Azure Studio for the ...
amr khaled's user avatar
0 votes
0 answers
82 views

.NET - What happens to tasks that don't complete before the method finishes? [duplicate]

Apologies if this isn't asked well--this basically my first time posting, but I'm a long time lurker. I'm troubleshooting some .NET6 code that is looping through a list of a few thousand items, and ...
JKP's user avatar
  • 9
-2 votes
0 answers
27 views

Hello, I am doing a project with SignalR in .Net Core Web API. I am stuck somewhere in this Project [closed]

In this project, I am trying to get data with SignalR. I am trying to get the data from my Controller and I get it with a get request, but I cannot get the data without running the get request. I want ...
ShaloW's user avatar
  • 1
-3 votes
0 answers
44 views

How to debug private method for unit testing [closed]

I am writting and finished unit testing for public method.But it showing some condition is failing.I want to debug the unit testing by using f11 in visual studio. In my public method. I have some ...
alex's user avatar
  • 1
0 votes
1 answer
42 views

Live Search returning whole page

I'm trying to get a live search bar to work in .Net Razor with AJAX, and it looks like it returns the whole page, instead of my partial only. Im trying to replace a container with the results of the ...
Patrick's user avatar
0 votes
1 answer
30 views

Displaying User Name from JWT Token in React Header with C# Backend

I want to properly display the userName in the Header component. However, I sometimes encounter errors while decoding the token with jwtDecode, or the setUserName state is not updated correctly. Do I ...
Mert Batut's user avatar
-1 votes
1 answer
18 views

Report Generation Failed: An error occurred during local report processing.;The definition of the report [closed]

I am getting this error when i hit the api. In local server it not giving these error. Report is generating perfectly. But when i deploy on IIS or any other platfrom like plesk etc it give these ...
Muhammad Talha Saeed's user avatar
-1 votes
0 answers
8 views

Validating IModelValidator with RecursiveDataAnnotationValidator

My goal is to add a couple of default validation rules system wide to my asp.net application, but also be able to use these validation rules in my test setup. I have something like: public void ...
asgerhallas's user avatar
  • 17.7k
-1 votes
1 answer
55 views

ASP.NET Core & EF Core : concurrency exception not thrown despite working rowversion

This is part of my method which creates reservations of books: var book = await _context.Books.FirstOrDefaultAsync(b => b.Id == id); if (book == null || !book.IsAvailable) { return ...
johny_walker's user avatar
0 votes
0 answers
24 views

Unable to call ASP .NET controller action

I've got a shopping cart view with buttons for incrementing and decrementing the quantity of items in the cart. The problem is that when I click the anchor tag with the asp-action for incrementing or ...
Kyle Hochdoerfer's user avatar
0 votes
1 answer
41 views

ASP.NET is there a way to map a specific endpoint to a static html file?

i would like to map a custom endpoint to an html file like localhost:3000/page taking you to somePage.html. I tried using app.UseFileServer as described in the asp.net docs for static files like this ...
a-lion's user avatar
  • 11
0 votes
0 answers
17 views

On IdentityDbContext vs AspNetSqlMembershipProvider: How to solve coexistence of webforms and web api technologies?

Being quite new to ASP.NET Core and Web API (Microsoft solution), I need to use the authentication and authorization for the Web API where the users and roles are maintained using the older ASP.NET ...
pepr's user avatar
  • 20.7k
0 votes
0 answers
11 views

What are the best sources for revamping ASPX and VB.Net interfaces with hierarchical navigation and intuitive item selection? [closed]

I'm working on renewing a project developed in ASPX and VB.Net and I would like to modernize its interface, in order to make it more intuitive and with hierarchical data navigation and item selection ...
Rui Soares's user avatar
0 votes
0 answers
18 views

Cannot upload file with ajax and asp.net webservice in shared hosting

I have created an application to upload files to a folder using ajax request and asp.net webservice.asmx. It's working fine in my local system with IIS. But when I hosted it in my Mochahost shared ...
Codinoz Technologies's user avatar
1 vote
1 answer
28 views

Publish ASP.NET app without certain folders

I have a csproj with some folders with code from different clients. When i publish my app i get something like this: Client1Folder Client2Folder Client3Folder Client3Folder2 SomeCommonFilesAndFolders ...
TSDrake's user avatar
  • 189
0 votes
1 answer
34 views

Access different form element value

In an action, can I access different form element value? For example I have 3 forms, first form contains common element. <form id="commonSurname"> <input type="text" ...
undefined behavior's user avatar
0 votes
0 answers
29 views

error occurred during connection handshake ArgumentOutOfRangeException Specified argument was out of the range of valid values Parameter (delay)

What's cause this error specifically when upload on IIS not happening on local!! this program.cs using Core.Interfaces.Services; using Core.Services; using Core.ViewModel; using Infrastructure.Models; ...
Ibrahim Zaky's user avatar
0 votes
0 answers
35 views

ASPNET project with two namespaces (nested folders) won't compile

I'm trying to get an older project to build. The application had two versions and the "v2" version is in a subfolder of the parent. The namespace for the parent is BackOfficeAPI. The ...
Mark's user avatar
  • 1
0 votes
0 answers
10 views

Control an element in the layout based on the item loaded in the main page

I have a page, which is populated based on the application selected in the layout. app1 >> menu items1 >> page1 this works fine. However, if i access the main page through URL, the app ...
mis.gg6144's user avatar
0 votes
0 answers
105 views

Ajax sending without return due to possible obfuscation in a subsequent sending from the server to an external website

From the client I send an Ajax request to the server expecting a return. $.ajax({ type: "POST", url: "RespuestaajaxL.aspx/RespuestaajTask", contentType: &...
Manuel Cera Vera's user avatar
0 votes
0 answers
26 views

Prevent Docker from removing volume content when doing compose up

I'm making an application to store music and have a backend made with ASP.NET that I'm trying to move to Docker The music is stored in a folder called "data/" next to when I run the docker ...
Xwilarg's user avatar
  • 404
0 votes
0 answers
33 views

Trim Gridview field with ellipsis and tooltip in C#

I am running into some trouble with this GridView. Yesterday I actually had this function working, but then ended up changing my Gridview to use ItemTemplate instead of Databound fields, and now the ...
Amy 's user avatar
  • 1
1 vote
0 answers
33 views

Programmatically Execute SSIS .dtsx Packages with C# for SQL Server 2019?

I am trying to programmatically execute SSIS .dtsx packages using a C# application targeting SQL Server 2019. Previously, I was using NuGet package for SQL Server 2016, but after migrating the SSIS ...
KA-Yasso's user avatar
  • 401
0 votes
0 answers
26 views

How to parameterize queries in c# when using Databricks?

I'm currently working on a C# ASP.NET service that interacts with a Databricks table, and I was trying to figure out a way to parameterize the SELECT queries made to that table. Here is an example of ...
Ben F's user avatar
  • 11
0 votes
0 answers
25 views

External login claims not received in ASP.NET MVC app on .NET 4.8 [For Google]

My Problem is why I get externalIdentity = null and no claims what's the reason? How can I solve it. I want to implement external login in my asp.net mvc 4.8 project. The code I wrote is given below. ...
Nakib Rahaman's user avatar
2 votes
0 answers
87 views

How to Add JWT Token Support Globally in Scalar for a .NET 9 Application?

I'm working on enabling Scalar in my .NET 9 application and need to configure it to use JWT tokens globally, similar to how Swagger allows adding JWT token authentication globally. However, I couldn't ...
Recep Gunes's user avatar
0 votes
1 answer
29 views

Pause after Alert

I've got the following code that is supposed to prompt the user that a question has been submitted, and then refresh the page: protected void ButtonSubmitQuestionClick(object sender, EventArgs e) { ...
Johnny Bones's user avatar
  • 8,412
-3 votes
0 answers
57 views

Ajax not calling a c# function [closed]

I am trying to call a C# method from my javascript code that when the user presses a button it updates the query variable and gets back a new table for those dates. but my javascript dosnt call the C# ...
Tom Daniliuc's user avatar
0 votes
1 answer
78 views

Creating a large Zip from files present in Blob storage in Dotnet core

We are trying to create a zip of all the files related to a particular environment (which would be 100s of 1000s in number with average size of 100KB). After zipping the size of zip file would be ...
Shubham Saxena's user avatar
0 votes
0 answers
23 views

How to Print full slip when applying ScrollViewer

I have this code in where I am printing slip for my wpf application. Here the printing is working fine if I just click on print button and is printing full slip from top to bottom. The issue occurs ...
Zoraiz's user avatar
  • 21
-1 votes
0 answers
52 views

How Can I Make My HTML Page Upload a PDF to my ASPX Page [duplicate]

Background Application/Program: Lightweight Website (40,000 HTML Pages | 5 ASPX Pages) Goal: HTML Functionality that sends Uploaded PDFs to an ASPX Page (for processing) Problem: Uploaded PDFs Get ...
Elias's user avatar
  • 51
1 vote
1 answer
43 views

How to create `AsChild` or `Slot` within Blazor

I have been searching for an answer to this question for a long time. All I want is to be able to recreate the Radix's slot component/asChild pattern within Blazor. e.g. <Button AsChild> <...
Halden Collier's user avatar
0 votes
0 answers
30 views

Binding checkbox to model and not return checked states in ASP.NET MVC

When binding checkboxes in a form to a list of models is it possible to return the List<Model> instead of merely the string[] of IDs of the checked boxes? Ideally I would like to receive the ...
user19440's user avatar
1 vote
2 answers
68 views

Incorrect format problem when converting a BMP image file from Base-64 to binary

I am trying to convert the Base-64 data contained in the "data" returned by toDataURL of a fabric.Canvas into a file with its corresponding extension (BMP). The result is a "The file is ...
Manuel Cera Vera's user avatar
0 votes
0 answers
24 views

(Asp.NET C#) Error with executing an update query for a database [duplicate]

I am new to programming, so please be kind. I am working on a final project for C# specifically within ASP.NET. For this project it has been a three part cumulative of CRUD. We are working with a ...
heather.feather.code's user avatar
0 votes
1 answer
25 views

HTML Accordion closes immediately when run from asp.net website

I am trying to create a collapsible menu and I have adapted the following code to suit my needs (Credit https://codepen.io/AndreasFrontDev/pen/zBZZvq). The html file opens and behaves as expected when ...
DMAC's user avatar
  • 17
0 votes
1 answer
58 views

Upgrading Oracle Database from 11g to 23AI FREE and cannot log on from application

I'm upgrading my Oracle Database from 11g to 23AI FREE, got all my data, procedures, functions, packages and user accounts/information migrated from the 11g database to the 23AI database and I'm able ...
Prescott Chartier's user avatar
0 votes
0 answers
18 views

ASP.NET Using shorthand bracket notation '[]' on an interface variable - what gets created? [duplicate]

Let's say you have this code: public sealed class Test { public IEnumerable<string> MyList { get; } = []; } What is the documentation on the concrete type of object the shorthand expression ...
user3163495's user avatar
  • 3,495
1 vote
1 answer
59 views

Access denied with Kerberos Delegation in IIS-hosted ASP.NET web application when accessing shared folder on another server

How can I resolve the "Access Denied" issue when accessing a shared folder on SERVER03 from an IIS-hosted ASP.NET application using Kerberos delegation, despite having configured the service ...
FlaskDev's user avatar
0 votes
1 answer
35 views

Avoiding postback on a page refresh

I have a form which intakes data (a question to a Manager), and when the Manager has answered the question, the page will prompt the user that the question has been answered. The user wants to keep ...
Johnny Bones's user avatar
  • 8,412
0 votes
0 answers
18 views

AJAX AutocompleteExtender added from ASP.NET code behind does not work

I add multiple AJAX AutocompleteExtenders from code behind. Only one of them is working properly. When I check the HTML page I find one object created (for the working extender). I can't figure out ...
Peter Häggmyr's user avatar
-5 votes
1 answer
49 views

C# Create Excel with Multiple Worksheet without external component [closed]

I need to export dataset data to Excel into multiple worksheets without using Excel Interop, ClosedXML, or any other component and without JavaScript. For single worksheet using StreamWriter. Thanks. ...
exp's user avatar
  • 1
-1 votes
0 answers
18 views

Deploying .NET 4.7.2 version in an ec2 using Windows also github

So, I deployed it. But I'm getting a problem like when I am opening with publish IP is shown like this 65.0.19.117 - / 12/5/2024 6:41 AM <dir> alturasphere 12/5/2024 8:37 AM ...
Alwala Manoj's user avatar
0 votes
0 answers
23 views

How to call area's partial view in area's layout page in ASP.NET MVC using C#?

I created an area with the name of Member in ASP.NET MVC, and also created a partial view with the name of _Header.cshtml in the Member area. Now I want to call _Header.cshtml partial view in Member ...
Sendy's user avatar
  • 1
0 votes
0 answers
34 views

The "&" character breaks passwords that are stored in the web config [duplicate]

I have an ASP.NET MVC3 C# .NET Application running on IIS 7.5. We have a Windows NT service account we Impersonate in our code in order to read/write documents to a file share. The user id is compiled ...
Mochatitan's user avatar

1
2 3 4 5
7491