您的位置:首页 > Web前端

安装.netFramework3.0Sp1之后报“the located assembly's manifest definition does not match the assembly refer”的解决

2009-04-21 15:06 471 查看
很奇怪的问题,也没有找到为什么,从日志上来看好像跟system.servicemodel有关。

相关日志:

System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.ServiceModel.BasicHttpSecurity.set_Mode(BasicHttpSecurityMode value)
at System.ServiceModel.BasicHttpSecurity..ctor(BasicHttpSecurityMode mode, HttpTransportSecurity transportSecurity, BasicHttpMessageSecurity messageSecurity)
at System.ServiceModel.BasicHttpBinding..ctor(String configurationName)

。。。。

试了半天发现执行下边命令后居然就好了,实在搞不懂,就记录下吧。

1. %windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe –k:W3SVC

2. %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe –s W3SVC

3. %windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe –s:W3SVC
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐