Heim  >  Artikel  >  Backend-Entwicklung  >  Could not load type System.ServiceModel.Activation.HttpModul_PHP教程

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

WBOY
WBOYOriginal
2016-07-21 15:13:401122Durchsuche

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即可。

www.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'.] 上网搜了下...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn