Tuesday, February 14, 2012

Changing the .Net Frame Work in IIS 7 & Could not load type System.ServiceModel.Activation.HttpModule

1) if you want to change the frame work in IIS 7 
    *Expand The server node
    *Click on Application pool
    *Right click on the application pool of your hosted website website
    *Click on Basic Settings 
    * Change the FrameWork 
    * Click OK 




2)If you install DotNet framework 4.0 on IIS server and then enable DotNet 3.0 or 3.5 WCF features, you might see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool)



Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.


To resolve this issue, run the following from command line:

aspnet_regiis.exe /iru

The aspnet_regiis.exe file can be found in either
  • %windir%\Microsoft.NET\Framework\v4.0.30319
  • %windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit machine)

No comments:

Post a Comment