a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

首頁 > 系統(tǒng) > Windows > 正文

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

2019-11-28 03:58:03
字體:
供稿:網(wǎng)友
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系統(tǒng)中無效,因為在最后一步運(yùn)行 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

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 亚洲欧洲中文日韩 | 一区二区久久久 | 先锋资源中文字幕 | 日韩一区二区精品视频 | 91精品国产高清久久久久久久久 | 在线观看一区二区视频 | 黄页网站大全在线观看 | 91精品国产日韩91久久久久久 | 久久久久国产一级毛片高清版小说 | 成人欧美一区二区三区在线观看 | 色综合99 | 亚洲欧美在线播放 | 日韩一区二区中文字幕 | 国产欧精精久久久久久久 | 99久久精品国产一区二区三区 | 欧美成人一区二区三区片免费 | 日韩一区二区精品葵司在线 | 日本成人三级 | 日本亚洲国产一区二区三区 | av一二三区 | 精品一区二区国产 | 国产色片在线 | 人成精品| 久久另类ts人妖一区二区 | 国产欧美一区二区 | 日韩中文一区二区三区 | 欧美精品在线一区二区三区 | 欧美一区二区三区在线视频 | 国产伦精品一区二区三区在线 | 91精品国产乱码久久久久久久久 | 亚洲成人在线网站 | 在线区| 91精品国产欧美一区二区 | 国外成人在线视频网站 | 久久性色 | 91精彩视频在线观看 | 精久久| 小罗莉极品一线天在线 | 欧美视频亚洲视频 | 91在线成人 | 欧美视频三区 |