1,053 questions
2votes
1answer
55views
ASP.NET Core Web API routing is not using https
Question Why does dotnet run in my ASP.NET Core Web API use http only, and not using https, as well? Details I am working on Exercise - Create a minimal API from the ASP.NET team. According to item 3 ...
0votes
1answer
2kviews
How to make .NET framework 4.8 versioning work with Web API
I am working on a .NET framework 4.8 Web API project and I'm trying to enable versioning on the REST API endpoints. All the endpoints are broken and I am unable to figure out what is wrong. Can anyone ...
0votes
0answers
106views
Http PUT method is not working in OData Web API service
I have exposed a SQL Server table using Web API and OData service in C#. In my service, the Get() method is working fine, but the PUT method is not working and I get this error System....
1vote
0answers
131views
Upgraded OWIN libraries from version 3.0.1 to 4.2.0 Http RequestUri is coming in capital later
After upgrading the OWIN libraries from version 3.0.1 to 4.2.0, the Http RequestUri is now coming in capital letters. This means that if I am requesting from the front end like http://localhost/...
0votes
1answer
41views
Odata custom action in C# giving Page not found
I am new to odata and trying to follow the tutorial https://learn.microsoft.com/en-us/odata/webapi-8/fundamentals/routing-overview?tabs=net60 I am trying to create an action reachable on http://...
0votes
2answers
122views
Hosting multiple web APIs in the same process in .net
We have a microservice architecture with each microservice currently being hosted in its own process, and deployed via its own docker image. Totally school book separated. On a source level, all ...
0votes
1answer
60views
MuchRandomly Content-Type is not getting seen by a .Net Framework WebAPI server
Documenting a much random issue, probably of .NetFramework, that happens once every 3-4 weeks. We have 3 load-balanced servers in AWS behind ALB. And occassionally, one of the WebAPI servers stops ...
0votes
0answers
104views
How to implement POST in Web API using C# with normal URL in web browser?
Basically, I am trying to make a dynamic SQL controller for Web API. I am having an issue trying to just type the normal URL path of the Web API and using the insert columns to see if I will get the ...
0votes
1answer
155views
ASP.NET Core 7 Web API : date serialization for Angular form control
In the Person class, Birthday is defined as DateTime. public class Person { public string Name { get; set; } public DateTime Birthday { get; set; } } In my controller, I have an endpoint as ...
0votes
1answer
222views
How to use RoutePrefix in sub folders in Controller folder in .net core 6 Web API Application?
I am trying to call controller action in subfolder located in main Controller folder. I changed RoutePrefix in controller and app.MapControllerRoute() in program.cs different ways. But my postman call ...
1vote
2answers
1kviews
How do I set a prefix in my ASP.NET Core 7 Web API for all endpoints?
I am retrieving a string from my appsettings.json: { "ConnectionStrings": { //several strings }, "BaseRoute": { "Base": "/myapi/" } } And I ...
0votes
1answer
224views
API Upgrade from .Net Framework to .Net 6.0 throwing 404 error in Postman
I have the following code which was working fine in .Net Framework but after upgrade it's throwing 404 error. This is basically my code : [RoutePrefix("API")] [BasicAuthenticationFilter] ...
0votes
0answers
956views
Defining API route using API versioning in ASP.NET Core 7 Web API
I am currently working on an ASP.NET Core 7 Web API project and I am facing an issue with defining the API route using API versioning. Program.cs builder.Services.AddSwaggerGen(c => { ...
0votes
1answer
154views
AmbiguousMatchException when truing override parent ASP.NET controller
almighty All! Second day passed... Need Help! I have two controllers: base DocumentController and derived InvoiceController in ASP.NET C# WebAPI application**:** [ApiController] [Route("Documents&...
-1votes
3answers
450views
Why is my .net Core API Attribute Routing not working?
I am experimenting with a "Hosted Blazor WASM" project. This problem does not concern the Blazor client router (that is working fine). This concerns the "server-side" router not ...