1,053 questions
2
votes
1
answer
54
views
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 ...
0
votes
1
answer
2k
views
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 ...
0
votes
0
answers
106
views
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....
1
vote
0
answers
130
views
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/...
0
votes
1
answer
41
views
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://...
0
votes
2
answers
122
views
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 ...
0
votes
1
answer
60
views
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 ...
0
votes
0
answers
104
views
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 ...
0
votes
1
answer
155
views
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 ...
0
votes
1
answer
222
views
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 ...
1
vote
2
answers
1k
views
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 ...
0
votes
1
answer
224
views
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]
...
0
votes
0
answers
956
views
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 =>
{
...
0
votes
1
answer
154
views
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&...
-1
votes
3
answers
450
views
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 ...