Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2014, 02:03 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default Could not load type 'System.ServiceModel.Activation.HttpModule' from...

Hello

I have a 2008R2 server which is intended on running classic ASP and ASP.net applications. When trying to browse to my classic ASP application I am getting:

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
So after some investigation I see the application pool was set to .net 4.0 and Integrated code. Knowing that I did not need this I set it back to no managed code / classic. So all was fine, my classic ASP system works without issue. Only then did I find out there is a .net application also sitting under the same IIS Website which was no longer working.

Now when I set the Application pool back to .net 4.0 and Integrated code both the classic ASP and .net sites serve up the above error. So now both sites are broken...

If I place a simple Classic ASP page in place it does work fine so IIS is serving up a simple classic ASP page. I have tried recycling the app pool, no luck. I just re-started the server, no luck.......Any help would be great

TYIA
__________________
Wind is your friend
Matt
 
Old March 11th, 2014, 11:33 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

Do you have the ASP.net 3.5 windows components installed, you can install them via add remove windows components. You will more than likely have to register it with IIS after install.
 
Old April 27th, 2014, 10:52 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

You can also set up the parent classic ASP application to "no managed code" in the app pool settings and then assign a different app pool to the child .net application with an integrated pipeline.





Similar Threads
Thread Thread Starter Forum Replies Last Post
System.ServiceModel arnab-jit ASP.NET 3.5 Basics 2 November 16th, 2010 01:34 AM
Could not load type skhan ASP.NET 3.5 Basics 0 July 29th, 2009 11:05 AM
Guidelines Item 3: Replace System.Type with Type Ixtlia BOOK: Professional .NET 2.0 Generics 0 August 19th, 2007 04:09 AM
type load exception crazy_eye_bob Crystal Reports 4 November 7th, 2005 01:16 PM
Cannot load Type Abstract planoie VS.NET 2002/2003 2 September 3rd, 2003 03:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.