Could not load type System.ServiceModel.Activation.HttpModul_PHP教程

來源:互聯網
上載者:User
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]

上網搜了下,問題產生的原因是在安裝了IIS後又裝了其他版本的framework, 導致assemble中的版本和程式使用的版本不一致了。解決辦法是使用

aspnet_regiis.exe -iru 重新註冊iis。

操作如下:

使用administrator許可權開啟command promt(一定要用run as administrator,否則註冊不上)
進入framework的檔案夾(C:WindowsMicrosoft.NETFramework),選擇相應的版本下的檔案夾(v4.0.30319),使用命令

複製代碼 代碼如下:
aspnet_regiis.exe -iru


等註冊完成後網站就可以開啟了。

win2008下提示未能從程式集“System.ServiceModel, Version=3.0.0.0問題解決

在Windows Server 2008中的IIS伺服器中部署WCF服務程式時,通過瀏覽器訪問報出如下錯誤:

未能從程式集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中載入類型“System.ServiceModel.Activation.HttpModule”。

原因:

這是因為先安裝了 .NET Framework 4,隨後啟用了 .NET Framework 3.5 WCF HTTP 啟用,則會發生此錯誤。

解決辦法:

微軟官方對該問題也作瞭解答:http://msdn.microsoft.com/zh-cn/library/aa751852.aspx

只需要已管理使用者在cmd中運行aspnet_regiis.exe -i -enable即可。

http://www.bkjia.com/PHPjc/326408.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/326408.htmlTechArticleCould not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] 上網搜了下...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.