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?

HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.


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 4, please add the following to your web.config file. 
   <add name="StaticFile1"
     path="*.*" verb="*"
     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" />

3) If you are running 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"
    preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />