Questions tagged [asp.net]

ASP.NET is a Microsoft web application development framework that allows programmers to build dynamic web sites, web applications and web services. It is useful to use this tag in conjunction with the project type tag e.g. [asp.net-mvc], [asp.net-webforms], or [asp.net-web-api]. Do NOT use this tag for questions about ASP.NET Core - use [asp.net-core] instead.

0 votes
1 answer
11 views

How do I send a HTTP PUT request with HttpClient?

I have a web service that I'm trying to write to, but every time I try to send a PUT request to it I get a 'Bad Request(400)' Error. I'm using the ASP.NET MVC framework and I have everything set up in ...
user avatar
  • 29
0 votes
0 answers
13 views

Cannot run React with ASP.Net

I decided to make a new ASP.Net with React as front-end, so I ran dotnet new react and npm install on the ClientApp folder, but when I build and run it, it gave me this error [HPM] Proxy created: /...
user avatar
0 votes
1 answer
26 views

Trying to map a Date to object using mysqlconnector in C#

I am trying to read information from my DAL and am wondering what built in types am I suppose to use in C# to extract the DATE Data Type in MySql to retrieve information. Am I suppose to use DateTime ...
user avatar
0 votes
0 answers
16 views

What value can I put for default in and OpenApiSchema?

I am trying to add an optional parameter to my API endpoint. The default value of this parameter is "true". I am getting an error saying cannot convert bool to OpenAPIAny. What other value ...
user avatar
  • 287
0 votes
0 answers
16 views

ASP.NET web service 413 request entity too large error

I have an older ASP.NET API web service using .net 4.5.2 and I am posting an object that contains a base64 image to my controller without any problem. The issues come now when I try to post data with ...
user avatar
0 votes
0 answers
25 views

ASP.NET Javascript .live() obsolete

I needed to update a project and after updating bootstrap and jquery, some functions stopped working. Before I had this code that worked perfectly when I clicked on an image inserted in the first ...
user avatar
0 votes
0 answers
13 views

Always display iFrame on page - do not refresh

I am trying to add an iFrame to my page, and when the user navigates to another page [MVC], I want the iFrame not to reload as this calls server side code on the iFrame. So any navigation should not ...
user avatar
  • 217
1 vote
1 answer
26 views

How to use httpcontext on a given string URL

I'm trying to use httpcontext on a given string ex: I have this string url = "https://subdomain.domain.com/link1/"; And I want to be able to retreive those following value from the string ...
user avatar
  • 23
-3 votes
1 answer
15 views

Not able to add migration in the Asp .Net Mvc Project using add-migration?

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Internal....
user avatar
1 vote
1 answer
48 views

NullReferenceException on initialised object

I am getting a NullReference Exception when trying to access a property of something that I know isn't null. code: public class LeadModel { private string digital_Analytics; public string ...
user avatar
-1 votes
1 answer
34 views

.net core dto censoring [closed]

My wish is when I return DTO to API I want to censor that DTO like Jo** and wa***. DTO: public class XDTO { public string? Name {get; set;} // ("John") public string? Address {get; ...
user avatar
-3 votes
0 answers
30 views

I can't perform a POST request in C# [closed]

I was trying to make POST and GetByID requests in my project but I'm not having success because it's showing up, I've searched about it but I haven't found anything about it. This is showing up in my ...
user avatar
-1 votes
0 answers
16 views

Best practices to deploy ASP.net WebAPI application with another frontend application in IIS [closed]

I am new to ASP.net and IIS and I don't know if I am deploying my ASP.net backend + my frontend the right way. I have 2 IIS sites : One site for the Angular frontend (https port 443, protected by ...
user avatar
0 votes
0 answers
23 views

Server don't receive model from client(asp.net core to asp.net)

somehow I don't get the model passed to the server model, even though it passes the model in Swagger & Postman. Asp.Net API-Call If I send something there now with postman. Is the parameter filled ...
user avatar
0 votes
1 answer
28 views

How to open a exe file located in client PC from hosted asp.net application?

I developed a small ASP.NET application to open an exe file located on my local PC. It is working fine when I run the application locally. But after hosting it in the IIS server, it generates an error:...
user avatar

15 30 50 per page
1
2 3 4 5
24649