校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > win8 Could not load type System.ServiceModel.Activation.HttpModule 錯誤解決方案

win8 Could not load type System.ServiceModel.Activation.HttpModule 錯誤解決方案

熱門標簽:宜賓回撥外呼系統 雙廊地圖標注 外呼系統電銷術語 電銷機器人哪家最好 百度地圖標注內容跳轉事件 科大Ai人工智能電銷機器人 辦理400電話_聯通 批量地址在地圖標注 邢臺代理外呼系統
From:http://support.microsoft.com/kb/2015129

Symptoms

  Consider the following scenario. You install the .NET Framework 4.0. Then, you install an earlier version of the .NET Framework, or you enable .NET 3.0 WCF HTTP Activation. In this scenario, you may receive the following error message when you when run applications that are hosted on Internet Information Services (IIS):

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

 

Cause

  This issue occurs because the Applicationhost.config file for Windows Process Activation Service (WAS) has the following section defined, and this section is incompatible with the .NET Framework 4.0:

add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />

  This section should be defined as follows:

add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />

  Note You can find the Applicationhost.config file in the following location:

%windir%\system32\inetsrv\config

 

Resolution

  To resolve this issue, run the following command line: 

aspnet_regiis.exe /iru

  The Aspnet_regiis.exe file can be found in one of the following locations:

%windir%\Microsoft.NET\Framework\v4.0.30319

%windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit computer)

 

注意

  以上方案在win8系統中無效,因為在最后一步運行 aspnet_regiis.exe /iru 命令時會失敗,所以解決方案是找到 Applicationhost.config 文件(目錄在%windir%\system32\inetsrv\config),然后把文件中的:

add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />

  改為:

add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />

  我目前只找到這種方案,如果有更好方案歡迎指出。

作者:Artwl
出處:http://artwl.cnblogs.com

標簽:德州 烏海 天水 滁州 阜新 麗江 重慶 襄陽

巨人網絡通訊聲明:本文標題《win8 Could not load type System.ServiceModel.Activation.HttpModule 錯誤解決方案》,本文關鍵詞  win8,Could,not,load,type,System.ServiceModel.Activation.HttpModule,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《win8 Could not load type System.ServiceModel.Activation.HttpModule 錯誤解決方案》相關的同類信息!
  • 本頁收集關于win8 Could not load type System.ServiceModel.Activation.HttpModule 錯誤解決方案的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 晋宁县| 福建省| 达孜县| 邵东县| 积石山| 阿拉尔市| 涪陵区| 澄江县| 石城县| 晋江市| 富顺县| 濉溪县| 海阳市| 冷水江市| 洛隆县| 大方县| 剑川县| 达州市| 汉源县| 中西区| 普格县| 东辽县| 德清县| 胶州市| 揭阳市| 泰和县| 盐池县| 祁门县| 葫芦岛市| 勃利县| 垫江县| 余干县| 南溪县| 法库县| 永修县| 乌兰县| 玉龙| 明溪县| 舞阳县| 巴青县| 金秀|