ASP.NET MVC5 The webserver is not configured for the requested URL, and directory browsing is not enabled on the server

后端 未结 5 470
终归单人心
终归单人心 2021-01-05 16:46

I have an issue with loading the pages from a MVC5 application.

I have this software installed and used:

  • Windows 10
  • Visual Studio Enterpris
5条回答
  •  攒了一身酷
    2021-01-05 17:14

    I finally figured it out. All I had to do was change the url in RouteConfig.cs

    from
    url: "{controller}/{action}/{name}/{id}"
    to
    url: "{controller}/{action}",

提交回复
热议问题