My MVC site is returning 403 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 403.14 - Forbidden

The Web server is configured to not list the content of this directory.


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 -> websites-->manage website  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" />