English | עברית
.Net Error fixing Note 1
The Exception:
Could not load type System.ServiceModel.Activation.HttpModule When i installed DotNet framework 4.0 on IIS server and then enable DotNet 3.0 or 3.5 WCF features, I start see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool).

The Exception shown:

Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=, 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 .

Exception Details: System.TypeLoadException: Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089′.

In order to fix this issue I run this command line:

aspnet_regiis.exe /iru

aspnet_regiis.exe location Path :


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

Related Posts

ASP.NET IIS Registration Options Summary


Install ASP.NET and updates existing applications to use the specified version of the application pool .


Installs and registers ASP.NET. This option is the same as the -i option except that it does not change the CLR version associated with any existing application pools .


If ASP.NET is not currently registered with IIS, performs the tasks of -i. If a previous version of ASP.NET is already registered with IIS, performs the tasks of -ir .

Essentially, depending on your previous setup, -iru may or may not update existing application pools to the version of ASP.NET you are installing .

Leave a comment
Established in 2004, Rizotec develops infrastructure management solutions, which help improve the performance and...
Hanit System v2
Hanit is a unique system developed for client X-Per-To (which merged with a group of Deloitte Brightman Almagor ...
Home    |    About Us    |    Portfolio    |    Contact us
Technical issues : support@item-soft.com | Comments : contactus@item-soft.com
Item Solutions www.item-soft.com
Hamaginim 7 p.t Israel 49442      Tel : 972-3-9341496