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=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
What do I need to do to fix this error? I could provide the exception stack trace if needed.
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.
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" />
Jay Bright
Member
16 Points
18 Posts
Type load error when trying to host an ASP.NET web app with IIS 7
Feb 08, 2013 10:32 PM|LINK
Hi There,
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=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
What do I need to do to fix this error? I could provide the exception stack trace if needed.
Thanks,
Jay
oned_gk
All-Star
31810 Points
6505 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
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.
Jay Bright
Member
16 Points
18 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
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.
Jay Bright
Member
16 Points
18 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
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.
oned_gk
All-Star
31810 Points
6505 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
Feb 09, 2013 03:12 PM|LINK
Jay Bright
Member
16 Points
18 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
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" />
oned_gk
All-Star
31810 Points
6505 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
Feb 10, 2013 07:27 AM|LINK
http://www.codeproject.com/Questions/296204/Could-not-load-type-System-ServiceModel-Activation
Jay Bright
Member
16 Points
18 Posts
Re: Type load error when trying to host an ASP.NET web app with IIS 7
Feb 11, 2013 01:42 AM|LINK
The solution on the web site you pointed at solved the problem. Thanks a lot.