Could not load type ServiceModel Activation HttpModule solution
- 2020-05-27 04:31:23
- OfStack
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
I searched on the Internet and found that the reason for the problem was that after installing IIS, another version of framework was installed. As a result, the version in assemble did not match the version used in the program. The solution is to use
aspnet_regiis.exe-iru re-register iis.
The operation is as follows:
Enable command promt with administrator permission (1 must use run as administrator, otherwise it will not be registered)
Enter the framework folder (C: WindowsMicrosoft.NETFramework), select the corresponding version of the folder (v4.0.30319), and use the command
Once the registration is complete, the website can be opened.
The problem "System.ServiceModel, Version=3.0.0.0" could not be resolved from the assembly when prompted by win2008
When deploying the WCF server in Windows Server 2008, the following error was reported via browser access:
Not from the assembly "System ServiceModel, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" load type "System. ServiceModel. Activation. HttpModule".
The reason:
This error occurs because you installed.NET Framework 4 and then enabled.NET Framework 3.5 WCF HTTP activation.
Solutions:
Microsoft officials also made a solution to the problem: http: / / msdn microsoft. com/zh - cn/library/aa751852 aspx
All you need is an administrator user to run aspnet_regiis.exe-i-enable in cmd.
I searched on the Internet and found that the reason for the problem was that after installing IIS, another version of framework was installed. As a result, the version in assemble did not match the version used in the program. The solution is to use
aspnet_regiis.exe-iru re-register iis.
The operation is as follows:
Enable command promt with administrator permission (1 must use run as administrator, otherwise it will not be registered)
Enter the framework folder (C: WindowsMicrosoft.NETFramework), select the corresponding version of the folder (v4.0.30319), and use the command
aspnet_regiis.exe -iru
Once the registration is complete, the website can be opened.
The problem "System.ServiceModel, Version=3.0.0.0" could not be resolved from the assembly when prompted by win2008
When deploying the WCF server in Windows Server 2008, the following error was reported via browser access:
Not from the assembly "System ServiceModel, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" load type "System. ServiceModel. Activation. HttpModule".
The reason:
This error occurs because you installed.NET Framework 4 and then enabled.NET Framework 3.5 WCF HTTP activation.
Solutions:
Microsoft officials also made a solution to the problem: http: / / msdn microsoft. com/zh - cn/library/aa751852 aspx
All you need is an administrator user to run aspnet_regiis.exe-i-enable in cmd.