解决:Could not load type 'System.ServiceModel.Activation.HttpModule' from assemb

时间:2023-03-08 22:32:53

解决:Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode

今天我发布项目,获取运行出错如下:

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode

解决:Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode

今天我发布项目,获取运行出错如下:

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode

只要执行下面的操作,重新注册一下 asp.net 4.0:

C:/Windows/Microsoft.NET/Framework/v4.0.30319/aspnet_regiis.exe -iru