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?
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
I had the same problem. I solved it re-targeting the ".Net CLR Version" in the "Edit Application Pool" view which's located in Application Tools Menu (IIS Manager). As soon as I retargeted to the current .Net version I was using for my web project, the website started to work. Below you can see a figure where it's shown what I'm explaining about.
确保您已授予该源文件夹对 IIS_IUSRS 的完全访问权限。
The following default element is configured in the root ApplicationHost.config file in IIS 7 when the Directory Browsing role service is installed.
<directoryBrowse enabled="false" />
Step - 1
The following example enables or disables directory browsing. You can set it in your project's Web.config
file.
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
</system.webServer>
</configuration>
Step -2
Open IIS Manager -> Directory Browsing -> Right-click on it and click on 'Open Feature' -> On the right side -> Action -> click on Disabled
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.