標籤:c style class blog code a
1,403.14-Forbidden Web 服務器被配置為不列出此目錄的內容
- 根據提示更改:使用 IIS 管理器啟用瀏覽目錄。
- 開啟 IIS 管理器。
- 在“功能”視圖中,雙擊“瀏覽目錄”。
- 在“瀏覽目錄”頁上,在“操作”窗格中單擊“啟用”。
但是改完之後問題依舊,網上又找到說更改web.config節點內容:
1 <system.webServer>2 <modules runAllManagedModulesForAllRequests="true" />3 </system.webServer>
但是不幸的是問題又依舊,google搜“Forbidden mvc”,找到解決方案:http://stackoverflow.com/questions/6011636/403-forbidden-on-basic-mvc-3-deploy-on-iis7-5,
運行 cmd 找到“Framework”目錄,執行:aspnet_regiis -i 命令。
在“應用程式集區”中新增.NET Framework 4.0應用程式集區,重新運行,OK。
2,Could not load file or assembly ‘System.Core, Version=2.0.5.0 和autofac衝突的問題 詳細資料:未能負載檔案或程式集 “System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes” 或它的某一個依賴項。給定程式集名稱或基本代碼無效。 (異常來自 HRESULT:0x80131047)
解決方案:安裝 http://support.microsoft.com/kb/2468871,64位只需要安裝 NDP40-KB2468871-v2-x64.exe 就可以了。
3,使用者 ‘IIS APPPOOL\.NET 4.0‘ 登入失敗。
詳細異常如下:
這個問題一般是連接字串為windows整合驗證導致的,更改如下:Data Source=server;Initial Catalog=db;User ID=test;Password=test;