Error message on Control Compliance Suite (CCS) 11.0 Web Console : "Could not load type 'System.ServiceModel.Activation.HttpModule'"

Article:TECH197214  |  Created: 2012-09-25  |  Updated: 2012-11-05  |  Article URL http://www.symantec.com/docs/TECH197214
Article Type
Technical Solution


Environment

Issue



Error message on Control Compliance Suite (CCS) 11.0 Web Console : "Could not load type 'System.ServiceModel.Activation.HttpModule"


Error



Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.”


Environment



CCS 11.0

Windows 2008 and Windows 2008 R2

NET Framework 4.0

 


Cause



This issue occurs because the Applicationhost.config file for Windows Process Activation Service (WAS) has the following section defined, and this section is incompatible with the .NET Framework 4.0:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />

This section should be defined as follows:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />


Solution



To resolve this issue, run the following from the command line: 

aspnet_regiis.exe /iru

The Aspnet_regiis.exe file can be found in one of the following locations:

%windir%\Microsoft.NET\Framework\v4.0.30319

%windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit computer)





Article URL http://www.symantec.com/docs/TECH197214


Terms of use for this information are found in Legal Notices