Wednesday, July 15, 2009

Creating a Side by Side application on IIS 6

Preparation for Demo

1. Create a Site in Visual Studio 2003
Add a page to the site which prints out the .NET Version (System.Environment.Version)
2. Create a Site in Visual Studio 2003
Add a page to the site which prints out the .NET Version (System.Environment.Version)

Start of Demo

3. Show the sites briefly, pages and what they do.

Show .NET 1.0 Code running under .NET 1.1

4. Show the Sites set up in IIS
5. Ensure the Sites are running under .NET 1.1
This proves that .NET code built under .NET 1.0 can run under 1.1.
6. Run the page from both sites showing the same framework version printing out.

Run Side by Side

7. Change the .NET 1.1 site to run under .NET 2.0

8. Show the .NET 1.1 Site running
9. Show the .NET 1.0 Site running
This will fail with a “Sever Unavailable” message
Show the Event Log entry under “Application” events.
10. Explain that sites running under different versions of the framework must be isolated into their own application pools.

Run Side by Side without Errors

11. Create two application pools called “ASP.NET 1.1 Applications” and “ASP.NET 2.0 Applications”
12. Place the .NET 1.1 Application into the “ASP.NET 2.0 Applications” pool.
13. Place the .NET 1.0 Application into the “ASP.NET 1.1 Applications” pool.
14. Show both sites running side by side at the same time.

No comments: