我在IIS 7.5上發佈了一個Intranet。如果我嘗試訪問網站,則會收到「403 - 禁止訪問:訪問被拒絕 - 您無權使用您提供的憑據查看此目錄或頁面」。在IIS 7.5上發佈MVC4應用程序但具有權限問題
如果我右鍵單擊IIS管理器上的應用程序文件夾並轉到管理應用程序,然後瀏覽,我會看到「HTTP錯誤403.14 - 禁止 - Web服務器配置爲不列出此目錄的內容」。然後繼續告訴我,沒有配置默認文檔等等,等等我有在web.config文件中列出了默認文檔如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<modules runAllManagedModulesForAllRequests="true" />
<defaultDocument>
<files>
<add value="Index.cshtml" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
我在做什麼錯?非常感謝。
請問你看看我的答案[IIS 7中的ASP MVC的結果:HTTP Error 403.14 - Forbidden](http://stackoverflow.com/questions/1741439/asp-mvc-in-iis-7 - 結果 - 在-HTTP-錯誤-403-14-禁止/ 41363973#41363973)。 –