Programming, error messages and sample code
My MVC site is returning 404 error message after I deploy
Programming, error messages and sample code > ASP.NET
Why is my MVC site showing the following error message when I try to browse it?
Some MVC sites might require to be run in Class Mode instead of integrated mode. To fix this issue:
1) Go to your control panel -> ASP.NET Manager and change your website from Integrated Mode to Classic Mode.
2) If you are running asp.net 4, please add the following to your web.config file.
3) If you are running asp.net 3.5, please add the following to your web.config instead:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Solution:Some MVC sites might require to be run in Class Mode instead of integrated mode. To fix this issue:
1) Go to your control panel -> ASP.NET Manager and change your website from Integrated Mode to Classic Mode.
2) If you are running asp.net 4, please add the following to your web.config file.
<handlers>
<add name="StaticFile1"
path="*.*" verb="*"
modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule"
resourceType="Either" requireAccess="Read" />
<add name="wildcard map" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
</handlers>
3) If you are running asp.net 3.5, please add the following to your web.config instead:
<add name="ASP.NET-ISAPI-2.0-Wildcard"
path="*" verb="GET,HEAD,POST,DEBUG"
modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />