Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Asp.net Core MVC routing not working after deployment

$
0
0

I have a working ASP.net core MVC website in Visual Studio 2019 Community Edition, but when I deploy it to a remote hosting provider, some of the menu links give a 404 not found error.

The site (http://www.dljsoftware.co.uk) is for a mountain club. There is a menu link Club/About Us. From the page source I can see the correct link of <a class="dropdown-item" href="/Club/AboutUs">About us</a>, but clicking on the menu link gives a 404 error, suggesting that the AboutUs method in the Club controller is missing or the view AboutUs is missing

However both the method and view are present in the Visual Studio code as seen from the fact that the link works correctly in VS. I have published the code in Visual Studio and deployed it to the remote site using Web Deploy

Has anybody any idea what could be going wrong

David


Viewing all articles
Browse latest Browse all 3561

Trending Articles