II7.0 發布 MVC 4.0 三個小問題記錄

來源:互聯網
上載者:User

標籤:c   style   class   blog   code   a   

1,403.14-Forbidden Web 服務器被配置為不列出此目錄的內容
  • 根據提示更改:使用 IIS 管理器啟用瀏覽目錄。
    1. 開啟 IIS 管理器。
    2. 在“功能”視圖中,雙擊“瀏覽目錄”。
    3. 在“瀏覽目錄”頁上,在“操作”窗格中單擊“啟用”。

  但是改完之後問題依舊,網上又找到說更改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;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.