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 🙂

Leave a Reply

Visitors

2,222,947 hits

Top Posts

Discover more from Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

Subscribe now to keep reading and get access to the full archive.

Continue reading