Last post Feb 10, 2013 09:42 PM by Jay Bright
Feb 08, 2013 06:32 PM|Jay Bright|LINK
I'm trying to host an ASP.NET web app on a brand-new Windows Server 2008 VM with IIS 7. I deployed the app, converted it to an application in IIS. However, when I try to view the app, I got the following server error in the application:
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
What do I need to do to fix this error? I could provide the exception stack trace if needed.
Feb 08, 2013 07:26 PM|oned_gk|LINK
Looks like your app have not set to appropriate net version.
Check your app_pool, use correct net version with you developt.
If not exist install netframework.
Feb 08, 2013 08:10 PM|Jay Bright|LINK
I had set .NET Framework Version to v4.0 for the pool, which is the correct version for my web app. I had also restarted the site in IIS.
Feb 09, 2013 09:57 AM|Jay Bright|LINK
Based on the error message, do I need to download and install .NET Framework 3.0? And if yes, where can I find it? I tried some Microsoft downloads, but unable to install.
Feb 09, 2013 11:12 AM|oned_gk|LINK
Feb 09, 2013 02:05 PM|Jay Bright|LINK
I downloaded and installed this. However, when I tried to install it, it prompted a confirmation message box. And when I clicked OK, it looks nothing happened.
If I switch the .NET version to v2 for the pool, instead of v4, I got the following server error:
Line 67: </appSettings> Line 68: <system.web>
Line 69: <compilation debug="true" targetFramework="4.0"> Line 70: </compilation> Line 71: <httpRuntime maxRequestLength="2147483647" />
Feb 10, 2013 03:27 AM|oned_gk|LINK
Feb 10, 2013 09:42 PM|Jay Bright|LINK
The solution on the web site you pointed at solved the problem. Thanks a lot.