Resolving .NET Framework Mismatch

Symptoms

When navigating to the AirWatch Console, as well as to the status pages of components such as the SEG, you may experience the website show an error page with the message:

Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken={value}’.

Resolution

This error can occur in cases where .NET Framework 4.0 is not properly registered within the Windows Communication Foundation (WCF) or there are multiple versions of .NET Framework currently installed.

First, ensure that WCF Activation has been installed and configured for HTTP and HTTPS activation.  This can be done by navigating to Server Manager -> Add Features -> .NET Framework Features -> WCF Activation and ensuring that HTTP Activation and Non-HTTP Activation are both enabled, along with WCF Activation itself. If they were not previously configured, select them and complete the wizard to configure them.

Next, the correct version of .NET will need to be registered for IIS.  To do this, open a command prompt and enter in the following three commands one at a time:

cd \Windows\Microsoft.NET\Framework64\v4.0.30319
aspnet_regiis.exe –iru
iisreset

After performing the IIS reset, the web pages should now load correctly.

Have more questions? Submit a request

0 Comments

Article is closed for comments.