Archive for the ‘ Uncategorized ’ Category

Could not load type ‘System.ServiceModel.Activation.HttpModule’ After Installing WCF HTTP Activation on IIS 7

Having deployed a WCF service to a Windows Server 2008 R2 servre hosting IIS7.5 I had to configure the feature for WCF HTTP Activation to enable the service to work.

This worked perfectly until I went to use a different IIS web application on the same server that was running as a ASP.Net 4.0 application. It was broken. Turns out that the WCF HTTP Activation registered a load of .Net 3.x stuff with IIS which renders .Net 4.0 useless.

A simple fix is required. Open a command prompt underthe context of an Administrator and navigate to the relevant framework diretectory; %windir%\Microsoft.NET\Framework\v4.0.30319 then simply register the .Net 4.0 assemblies in IIS using this command;

aspnet_regiis -iru


Restart IIS and the problem is fixed.

The Beginning

After spending many years working with .Net and SQL Server and spending a lot of time helping others with SQL Server issues – I thought it was about time I started sharing my experiences. I am sure a lot of what I write about will already have been covered elsewhere, but what the hell. Its what I enjoy.