Home > .net, asp.net, Azure, C#, IIS > Could not load type System.ServiceModel.Activation.HttpModule

Could not load type System.ServiceModel.Activation.HttpModule


if you get the following error..

“Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, 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=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.”

Solution

To resolve this issue, run the following command line:

if you are using x86 use

Microsoft Visual Studio 2010/Visual Studio Tools/Visual Studio Command Prompt (2010).exe

if you are using 64bit use

Microsoft Visual Studio 2010/Visual Studio Tools/Visual Studio x64 Win64 Command Prompt (2010).exe

aspnet_regiis.exe /iru

The Aspnet_regiis.exe file can be found in one of the following locations:

%windir%\Microsoft.NET\Framework\v4.0.30319

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

 

About these ads
Categories: .net, asp.net, Azure, C#, IIS
  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 596 other followers

%d bloggers like this: