Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 267
zlZimon Avatar asked Dec 23 '22 23:12

zlZimon


1 Answers

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

like image 179
zlZimon Avatar answered Feb 16 '23 02:02

zlZimon