Archive

Posts Tagged ‘web application’

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 🙂