Monday, March 12, 2012

Could not load type “System.ServiceModel.Activation.HttpModule”

After my IIS server got some updates, it looked like I started getting the “Could not load type “System.ServiceModel.Activation.HttpModule” from assembly “System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublickKeyToken=b77a5c561934e089”

image

It looked to me as though I needed to reregister Asp.Net 4.0 dlls. And AspNet_RegIIs is the answer.

Run : aspnet_regiis –iru

Aspnet_Regiis can be found in one of the following locations (based on your OS type)

%windir%\Microsoft.NET\Framework\v4.0.30319
%windir%\Microsoft.NET\Framework64\v4.0.30319 (64-bit machine)

1 comment:

Josh Mouch said...

This fix won't work on Windows 8 since aspnet_regiis.exe won't run on it. For a solution that works with Windows 8, see: http://blog.josh.mouch.name/?p=138