Sharepoint Foundation breaks WCF – Resolved

While installing Sharepoint Foundation 2010 today an hardware that was already running some MVC 3 websites with some WCF/Webservice dependancies, I was surprised to find those sites were suddenly broken. The error was:

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

A quick bit of Googling led me to Bruno Walters post stating the following:

This error can occur when IIS
MPE: Sharepoint Foundation 2010 is installed after installing .NET Framework 4, or if the 3.0 version of the WCF Http Activation module is installed after installing IIS and .NET Framework 4.

To resolve this problem, you must use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe,) to register the correct version of ASP.NET. This can be accomplished by using the –iru parameters when running aspnet_regiis.exe as follows:

aspnet_regiis.exe -iru

Also: Since there are likely several aspnet_regiis.exe executables on your system, this additional note may be helpful:

When running aspnet_regiis.exe, you must ensure that you run the version supplied with the .NET Framework version that you want to use. The .NET Framework 4 version of aspnet_regIIS.exe is located in the following path(s):

  • 32-bit systems: %SystemRoot%\Microsoft.NET\Framework\v4.0.30319
  • 64-bit systems: %SystemRoot%\Microsoft.NET\Framework64\v4.0.30319

Version current as of 1/25/2011′, ‘Sharepoint Foundation install breaks WCF – Fixed’, ”, ‘inherit’, ‘open’, ‘open’, ”, ‘220-revision-3’, ”, ”, ‘2011-05-13 01:21:52’, ‘2011-05-13 01:21:52’, ”, 220, ‘https://eggermann.us/2011/05/220-revision-3/’, 0, ‘revision’, ”, 0) ;
INSERT INTO `wp_posts` VALUES (224, 1, ‘2011-05-13 01:22:58’, ‘2011-05-13 01:22:58’, ‘While installing Sharepoint Foundation 2010 today an hardware that was already running some MVC 3 websites with some WCF/Webservice dependancies, I was surprised to find those sites were suddenly broken. The error was:

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

A quick bit of Googling led me to Bruno Walters post stating the following:

This error can occur when IIS Sharepoint Foundation 2010 is installed after installing .NET Framework 4, or if the 3.0 version of the WCF Http Activation module is installed after installing IIS and .NET Framework 4.

To resolve this problem, you must use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe,) to register the correct version of ASP.NET. This can be accomplished by using the –iru parameters when running aspnet_regiis.exe as follows:

aspnet_regiis.exe -iru

Also: Since there are likely several aspnet_regiis.exe executables on your system, this additional note may be helpful:

When running aspnet_regiis.exe, you must ensure that you run the version supplied with the .NET Framework version that you want to use. The .NET Framework 4 version of aspnet_regIIS.exe is located in the following path(s):

  • 32-bit systems: %SystemRoot%\Microsoft.NET\Framework\v4.0.30319
  • 64-bit systems: %SystemRoot%\Microsoft.NET\Framework64\v4.0.30319

Version current as of 5/12/2011

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s