安装.netFramework3.0Sp1之后报“the located assembly's manifest definition does not match the assembly refer”的解决
很奇怪的问题,也没有找到为什么,从日志上来看好像跟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