Iis – Unable to get anything except 403 from a .Net 4.5 website

asp.netiisnet

Scenario: Clean Server 2008 R2 Install with IIS Role.

Installed Framework 3.5 (Server Features)
Installed Framework 4.5 RC (MS Download)

executed

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -i

(I'd use -iru on existing servers but this is a clean build).

Published via File System (SMB share)

Converted the folder into an application using the .Net 4.0 Integrated App Pool

Stopped/restarted everything.

Browsing to localhost/TestApp results in a 403.14 (Directory browsing forbidden)

What step have I missed out? The site in question is MVC4 and targets the 4.5 RC framework

Best Answer

I had a similar problem. This thread https://stackoverflow.com/questions/2374957/asp-net-mvc-on-iis-7-5 solved it for me. Basically try adding this to your web.config:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer>

If that work you can try removing it and install this hotfix instead: http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=5272