Running ASP.NET 2.0 applications side-by-side with ASP.NET 1.1 applications

by lichen 2/2/2006 6:54:00 PM

It is possible to run asp.net 2.0 applications on the same server as asp.net 1.1 applications for as long as we follow a few simple rules:

  1. We can select the version of asp.net runtime to use from the asp.net property tab using Internet Infomration Services Manager.
  2. ASP.NET 2.0 applications will not run under ASP.NET 1.x runtime. ASP.NET 1.x applications might run under ASP.NET 2.0 runtime.
  3. You cannot have a sub application running under ASP.NET 1.x runtime while the root app runs under ASP.NET 2.0 runtime. An ASP.NET applications inherits the web.config from its parent; ASP.NET 1.x runtime cannot process the ASP.NET 2.0 web.config in the parent directory.
  4. You might run an ASP.NET 1.x appplication under ASP.NET 2.0 runtime. You might have to fix a few things. This is what I have done in one of my apps:

 <location path="Projects/DataGridHelper">
  <system.web>
   <pages pageBaseType="System.Web.UI.Page" />

   <httpModules>
    <remove name="UrlRoutingModule" />
   </httpModules>
   
   <httpHandlers>
    <remove verb="GET" path="FtbWebResource.axd" />
   </httpHandlers>
  </system.web>
 </location>

Specifically, I removed some unwanted httpModules and httpHandlers and reset the attributes on the Pages element that cannot be used in ASP.NET 1.0 application. One might also need to add the following in the httpHandlers section:
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | ASP.NET

Related posts

Comments

2/5/2006 3:14:00 PM

Li Chen

Additional Notes:
5. You cannot have asp.net 2.0 runtime and asp.net 1.x runtime running in the same application pool. Create additional pools for asp.net 1.x runtime.

The reason that we need to add the WebResource.axd is because asp.net 1.1 apps use aspnet_client directory to get java scripts. For ASP.NET 2.0 apps, the scripts are served by WebResource.axd. When you run asp.net 1.1 apps using asp.net 2.0 runtime, this is usually done automatically by the machine.config file. Occationally, I found that some apps did not inherit the handler so I had to add it explicitly to by app.

Li Chen us

9/1/2006 10:36:00 AM

kleinma

Thanks, your blog was the only link I could find that pointed me in the right direction.

I was having this issue with a 1.1 app running on the 2.0 framework, and adding the line

<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />

fixed it. However you may want to indicate that these directives should go in the web.config file of the application. I knew that, but others may not know exactly where to stick these values, as you do not indicate it.

kleinma us

Comments are closed

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2010

      Sign in