Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
试了网上所有的方法,什么修改C:\windows\system32\inetsrv\config下的配置文件ApplicationHost.config;
之后在vs2010命令行下注册aspnet_regiis.exe /iru;
试了两天还不能用,突发奇想,把wcf应用程序的应用程序池设置为.net framework 4.0 经典后,问题解决了。
这两天试了好多方法,最后好赖是解决问题了,不知道具体是哪一步解决的问题。
在解决问题时,[在vs2010命令行下注册aspnet_regiis.exe /iru],这一步总是出错,饶了很多弯路;还是没有解决。现在iis中只能由.net 4.0 经典,.net 4.0不能用