Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 11, 2013 01:42 AM by Jay Bright
Feb 08, 2013 10:32 PM|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=188.8.131.52, 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 11:26 PM|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 09, 2013 12:10 AM|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 01:57 PM|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 03:12 PM|LINK
Feb 09, 2013 06:05 PM|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 07:27 AM|LINK
Feb 11, 2013 01:42 AM|LINK
The solution on the web site you pointed at solved the problem. Thanks a lot.