[SOLVED] IIS 7.5 only shows directory list or 403 instead of ASP.NET Application

Issue

I successfully used web deploy to a IIS 7.5 server in the local network. However when I want to browse the side I only get a 403.14 Error. I can solve this problem by enabling directory browsing but then I only see the directory list instead of the actual application. (basically I see all folders and files from the web deploy)

When I start the application in Visual studio I get the website (login) which is: localhost:14421/Account/Login

I also cannot see any .aspx or .html file on the IIS after I did a web deploy. What setting did I miss?

Solution

Adding this to the Web.config fixed the issue:

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

Another way to fix this is installing the hotfix Update for Windows Server 2008 R2 x64 Edition

Answered By – zlZimon

Answer Checked By – Timothy Miller (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *