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

I have an ASP.NET MVC application (on .NET 4.8). Currently, the DevOps team has set up Nginx to handle requests with: location: / and this works fine. Now they want to change the setup so the ...
yousef saeedi's user avatar
0 votes
1 answer
51 views

I'm using .NET 8.0 and I've added this line of code so that when the url is not found it can go back to the homepage but it's not working. Got several non-informative errors. I might be getting a ...
choopau's user avatar
  • 2,449
0 votes
0 answers
68 views

Given one or more controllers (within Areas), named for example CustomerController and OrderController, I would like to be able to route to them using either of the following at interchangeably... /...
Martin Robins's user avatar
0 votes
1 answer
58 views

I hope you are doing OK, I have a project that I am updating and streamlining. BTW I am also learning .NET I have the next problem, when I change this: app.UseEndpoints(endpoints => { endpoints....
Mustafak's user avatar
2 votes
2 answers
75 views

I have the action method defined like below: [Route("example-page")] public ActionResult MyAction() { // I want to use "example-page" in here, like a query parameter. ...
Hüseyin's user avatar
0 votes
1 answer
58 views

In my ASP.NET MVC project, I have areas that have a certain name like Admin but I'd like my route to use iAdmin. For that I use the RegisterArea where I can specify my route, and it work well : ...
Le Gros-Porteur's user avatar
-1 votes
2 answers
489 views

I have project with areas and normal controller in it. But Area routing is working but normal controller is not working. Working, but Areas routing is returning 404 : app.MapControllerRoute( name: ...
Abhijeet Patil's user avatar
4 votes
0 answers
140 views

I want to write some API with single URL and want to route based on body type like below [HttpPost] [Route("{input: OverloadModelA}")] public IActionResult OverloadInsert([...
sorosh_sabz's user avatar
  • 3,053
1 vote
1 answer
221 views

I'm developing an ASP.NET Core API and facing an issue where the request to the api endpoint (/api/plants/search) consistently returns a 404 error, despite seemingly correct controller and routing ...
Philipp's user avatar
  • 51
1 vote
2 answers
711 views

I have a project in ASP.Net Core 8 and Angular 17 using Visual Studio 2022 version 17.9.0. I am using the new "Angular and ASP.Net Core" project template. And I just have a stickler of a ...
Sam's user avatar
  • 5,839
0 votes
0 answers
569 views

Hi folks I have a problem with using CreateAtAction in asp .net 8 api when I need to use it in my post or put request to go to a get request I have tried to make too many things to solve it by adding ...
motaz allala's user avatar
1 vote
1 answer
57 views

I have a basic ASP.NET MVC5 app with a Restaurant class as my model and I am currently using the default out of the box routing. /Restaurant/Create /Restaurant/Details /Restaurant/Index Previously ...
Daark_Archer's user avatar
0 votes
2 answers
49 views

When I try to post my Insert page for About Controller I am getting error as my title. I thougt that it is because of routing but I could not see any problem in my coding. My routing as below. ...
Mukremin Buyukkulekci's user avatar
0 votes
0 answers
297 views

I'm working on an ASP.NET Core application where I have a default route template, for example: ~/api/{area}/[controller]/{action?}/{id?}. My goal is to match incoming URLs with other route templates ...
Emre Kabaoglu's user avatar
0 votes
1 answer
897 views

I'd like to have controllers with default Route URLs and HTTP method generated by custom code and not require any HttpPost|Get|etc attributes (route actions will default to Post). I can do this using ...
David Faivre's user avatar
  • 2,352
0 votes
1 answer
100 views

I have an API developed in .NET7 with multiple controllers. Right now all the actions have the same authorization policy so we accomplished it by setting it up in the useendpoints middleware like ...
Curious George's user avatar
0 votes
1 answer
111 views

In my solution I have an ASP.NET Core Web API project. Skipping to the client side portion, in one of my controllers I am trying to implement a search function (my first time ever trying). When I try ...
acekensei's user avatar
1 vote
1 answer
106 views

I have updated an ASP.NET Core 3.1 MVC application to .NET 6, and now the routing is causing many "weird" problems. This used to work: <form asp-route="Resumes.Sections.SetTitle"...
Rene Kolmos's user avatar
0 votes
0 answers
59 views

I have a MVC project and it has controllers both outside and inside areas. I have this rule in RouteConfig: routes.MapRoute( name: "Default", url: "{...
mike_x_'s user avatar
  • 1,939
0 votes
1 answer
213 views

I have a route that looks like this: /foo/{identifier}/bar/ I have configured the route like this: httpConfiguration.Routes.MapHttpRoute("Foo1", "foo/{identifier}/bar/", new { ...
mamen's user avatar
  • 1,869
0 votes
1 answer
53 views

I'm on dotnet 7.0.203; having a very simple problem, which I believe shouldn't be the case. I have a few routes and one catch-all route, with my expectation being catch-all should be executed with the ...
Mavi Domates's user avatar
  • 4,581
1 vote
1 answer
158 views

Context I am migrating an ASP.NET MVC 5 app (running on .NET 4.7.2) to ASP.NET Core 2.2 on .NET 7.0. I am proceeding from a blank project and slowly moving-and-changing files. My current subject is ...
SandRock's user avatar
  • 5,617
1 vote
2 answers
4k views

I just migrated from .net core 3.1 to .net 6. My project is an WebApi. All my controllers inherit from ControllerBase and they have an [ApiController] attribute with the appropriate [Route] attribute. ...
Eric's user avatar
  • 260
0 votes
1 answer
202 views

I am making menu with categories, where first menu item is All categories. All items call method Index in controller Auction, however, first item does not send id as a parameter. I am curious, why I ...
Peter Chovanec's user avatar
2 votes
1 answer
411 views

I have a custom IRouter implementation and I can't figure out how to register it in a .NET 7 MVC application. What I am trying to accomplish is this: Incoming requests have the form of https://example....
Mats's user avatar
  • 15k

1
2 3 4 5
84