Getting 404 error on MVC web-site

前端 未结 14 1113
暗喜
暗喜 2020-12-06 05:49

I have an IIS7.5 web-site, on Windows Server 2008, with an ASP.NET MVC2 web-site deployed to it. The website was built in Visual Studio 2008, targeting .NET 3.5, and IIS 5.1

14条回答
  •  再見小時候
    2020-12-06 06:36

    Do you have a problem with just 1 page or the whole site is not working?

    A) 1 page

    • You can use RouteDebugger to verify if the route is matched correctly

    B) Whole site

    • I assume you're using Windows Server - check if ASP.NET is enabled in IIS - it's disabled by default, I believe.

    • You can use MvcDiagnostics page to check if all dlls are deployed properly.

    • Are you running in IIS7 integrated mode? Classic mode of IIS7 does not automatically map extensionless URLs to ASP.NET (much like IIS6)

    • Make sure your Web.config tag is configured correctly.

提交回复
热议问题