Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
131 views

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 ...
nam's user avatar
  • 24.2k
1 vote
0 answers
159 views

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/...
Anil Kumar Maurya's user avatar
0 votes
2 answers
179 views

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 ...
someName's user avatar
  • 1,273
0 votes
0 answers
107 views

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 ...
user avatar
0 votes
1 answer
231 views

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 ...
NeoDotNet's user avatar
0 votes
1 answer
224 views

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] ...
TheFallenOne's user avatar
  • 1,716
0 votes
1 answer
197 views

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&...
Sergey  Khachaturov's user avatar
0 votes
1 answer
3k views

I want to create two routes, one with version and another without, to point to the same controller without decorating the controller methods. I have defined two routes at the top of the controller, ...
RedRose's user avatar
  • 729
1 vote
1 answer
114 views

First time working with web APIs and I can't seem to make the PUT method work, while everything works fine (get, post and delete). I'm trying to do, what I think it is, a very simple call to update ...
Lucas Hoffmann's user avatar
3 votes
1 answer
2k views

I am trying to achieve header based versioning on my controllers with Asp.Versioning.Http package version 6.4.0 it is supposed to be super simple here however i get AmbiguousMatchException: The ...
TheSlowestDev's user avatar
0 votes
1 answer
783 views

I'm working on converting an ASP.NET Web API 2 to a .Net 6 Web API and ran into a problem when using Versioning. The problem I'm running into concerns named routes. I want my API to be able to be ...
RoLYroLLs's user avatar
  • 3,225
10 votes
1 answer
4k views

In .NET 5 this was working, but since moving to .NET 6 and using the more minimal WebApplication to spin up a REST API, I've hit a wall. To replicate this, I create a simple .NET 6 Console App and in ...
jtalarico's user avatar
  • 1,116
0 votes
1 answer
1k views

I have been trying to figure out how to use multiple [Route("[Controller]")] attributes in my two controller files. From what I have looked it up it seems possible, and even MS docs say you ...
JustBarnt's user avatar
  • 134
1 vote
2 answers
1k views

I have built a controller. For some unknown reason the end point is not reached. Unfortunately I do not understand why. [Route("api/realestates")] [ApiController] public class ...
Taladan's user avatar
  • 499
0 votes
1 answer
510 views

I have ApiController that looks like [RoutePrefix("Companies")] public class CompanyController : ApiController { [HttpGet] [Route("GetCompanyProfile")] public ...
Anders Lindén's user avatar
-1 votes
1 answer
2k views

I am working on a project which have scenario to redirect to httppost method from another controller which have a httpget method. Can you guys suggest me a good approach to achieve it? Example is ...
Arun Singh's user avatar
1 vote
0 answers
154 views

I have a simple WebAPI controller, looks like this: [Authorize] [ApiController] [Route("v{version:apiVersion}/[controller]")] [Route("[controller]")] [ApiVersion("1.0")] [...
user1470240's user avatar
2 votes
1 answer
714 views

How can I map multiple urls to one action method? For example http://localhost:10000/api/ABC and http://localhost:10000/api/ABCDCD will map to same action name because both starts with ABC. I can't ...
user781700's user avatar
0 votes
1 answer
1k views

I'm working on a Blazor WASM project, and I have a page that needs to post a file to the server. So I wrote something like this: @page "/Test" @inject HttpClient httpClient <h4>Please ...
Brian's user avatar
  • 147
0 votes
0 answers
66 views

I have a web api controller with HttpGet method inside. The controller sets it's route in a parametrized RouteAttribute (catalogId doesn't have :int or :long rules by an intention). The controller's ...
Dmitriy's user avatar
  • 674
0 votes
1 answer
768 views

I am working on web api 2.0 and trying to achieve below url to access with every controller. I have created a base controller which I inherited to every controller. Now I have a scenario where I need ...
Arun Singh's user avatar
0 votes
2 answers
3k views

I have this controller with one method which receives two variables. One is the culture, the other is a path. public class WebsiteContentController : ApiController { [HttpGet] public ...
LucaCosta's user avatar
  • 110
1 vote
1 answer
226 views

I have controllers AController and BController and both of them has a method that name is upload. This is the sample code; public class AController : ControllerBase { [HttpPost("[action]"...
doğan 's user avatar
  • 369
0 votes
0 answers
520 views

Hello I'm getting a problem not getting hit into Program.cs . We converted this project from previous .NET core . Now we are using latest .NET core 5 web api . I think when the first application run ...
Rifat Murtuza's user avatar
0 votes
1 answer
447 views

I am trying to find the difference in terms of how URL matching is different in both these frameworks I know the following is true for ASP.Net Web API, would like to know is it true for ASP.NET core ...
Rishi Tiwari's user avatar
  • 1,049

1
2 3 4 5
21