I made a MVC4 application with .net 4.5 using razor engine. It works fine when run locally with visual studio.
When I deploy to IIS on windows server 2008 R2(all windows updates done), it appears my bundles do not work and the CCS is not loading. I tried viewing the site on the server, viewed source went to the bundle link for the css, and it loads some css and then there is an IIS error of:
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
What I have tried:
1) Ensured .net 4.5 is installed.
2) Added <modules runAllManagedModulesForAllRequests="true"/>
to my web.config
3) Ran %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
in cmd
4) Checked that my app pool was set to Integrated Mode
5) Checked that it's set to use .net 4