Vivek Thakur

Chaotically Complex

  Home  |   Contact  |   Syndication    |   Login
  102 Posts | 1 Stories | 317 Comments | 66 Trackbacks

News



Archives

ASP.NET Ventures

Can we run both 1.1 and 2.0 web projects on the same Windows 2003 server? Many times I have answered this question on the forums, so thought of writing a post on the same.

IIS 6.0 can run both ASP.NET 1.1 and 2.0 web applications simultaneously on the same server, if each version specific application is assigned a different application pool. Now what is an application pool?

We know that each ASP.NET application is assigned a separate Application domain in the same worker process (w3wp.exe in Windows 2003). If a request comes for a different application on the same server, then another application domain is created within the same worker process. This avoids the overhead associated with creating a new worker process each time a new application is requested.

IIS also provides the facility of creating new new worker processes for each web application. This means that instead of running in the same worker process, IIS will create a new worker process and run the application within it. This information is maintained through application pools.

You can create a new application pool in IIS 6.0. Open IIS->Select your machine->Go to Application Pools folder->Right click->New Application Pool.

For assocating an application with a particular application pool:

1. Open IIS
2. Go to Websites
3. Select your website
4. Right click and Select properties
5. Go to Home Directory tab
6. Change the application pool by select the Application Pool drop down at the bottom.

So if we want to run both 1.1 and 2.0 web applications on the same server, we can create two application pools and assign one to 1.1 and the other one to 2.0 applications.

We can have an application pool which has multiple worker processes (a Web Garden) and is used for reliability so that if one worker process fails, the other one can continue handling the same request (requests are shared among the worker processes in a Web Garden).

See this link for more details and tips on application pools:

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/2a231dcb-d786-4b6d-b3ba-bda04061a5e7.mspx?mfr=true

 

posted on Thursday, September 21, 2006 11:25 AM

Feedback

# re: Running ASP.NET v1.1 and v2.0 on the same server 9/28/2006 4:47 PM Ivan Lee
This solution worked. Thanks!

# re: Running ASP.NET v1.1 and v2.0 on the same server 11/9/2006 7:21 PM Vijay Saradhy
Is there a chance of running ASP.NET v1.1 and v2.0 on the a machine with "Windows 2000 Server O/S?

Advanced thanks for Help.

# re: Running ASP.NET v1.1 and v2.0 on the same server 11/9/2006 10:19 PM Vivek
Hi Vijay,

In case you have IIS 5.0, though you can run both 2.0 and 1.1 applications by right clicking your virtual directory->Properties->ASP.NET tab. Select your version(1.1 or 2.0) and click Ok.

But you can't run them simultaneously as there is no concept of App Pool in IIS 5.0

Vivek

# re: Running ASP.NET v1.1 and v2.0 on the same server 5/2/2008 8:32 PM WCG
Perfect. This solved the problem in less time than it took to write this response.

# re: Running ASP.NET v1.1 and v2.0 on the same server 7/9/2008 9:16 PM sudhakar
My website has 2 parts. Part(1) developed in 2003 and part(2) developed in 2005. How can I run the site using 2 different versions of ASP.NET. These 2 are not separate websites. Instead, the 2 parts together should be hosted as a single website.



Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 5 and 1 and type the answer here: