Home > Misc > Could not load type System.ServiceModel.Activation.HttpModule exception

Could not load type System.ServiceModel.Activation.HttpModule exception

Hi,

I was getting below exception, When I hosted my asp.net web application on IIS and tried to browse my .aspx page.

Could not load type error

Could not load type error

Reason :-

  • The reason could be, when the IIS is installed after the installation of .NET Framework 4, or if the 3.0 version of the WCF Http Activation module is installed after installing IIS and .NET Framework 4.

Fix :-

  • To resolve this issue follow bellow steps
    • Open Command Prompt (Run -> cmd)
    • Navigate to the path “%windir%\Microsoft.NET\Framework\v4.0.30319”
    • Type “aspnet_regiis.exe /iru” and press enter button.
    Run Command Aspnet_iis.exe

    Run Command Aspnet_iis.exe

    • Restart the IIS

Hope it helps 🙂

Advertisement
  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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: