How do I configure the individual appliacation in IIS to target a particular version of the framework?
I am using IIS 5
Main Topics
Browse All TopicsHi I already have .NET framework version 1 and now I have installed version 2.0 and do the following to switch beteen the two versions: http://support.microsoft.c
But how can I make sure that the version that I am running .NET applications on it is 2.0 and not 1.0?
Please help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also, learn about: aspnet_regiis.exe
http://msdn2.microsoft.com
This is used in a command window.
Remember to always change directory to the proper directory (for ASP.NET 1.1 or 2.0)
for 1.1 (if installed in default location)
CD C:\WINDOWS\Microsoft.NET\F
for 2.0 (if installed in default location)
CD C:\WINDOWS\Microsoft.NET\F
aspnet_regiis -lk
will list the applications and versions of ASP.NET they use.
Watch out for some of the options, as they may update ALL sites on your machine, which may not be what you want.
Business Accounts
Answer for Membership
by: ozymandiasPosted on 2007-01-01 at 01:45:03ID: 18223289
Are we talking web applicatoins or exe apps ?
For a web applicatoin you configure the individual appliacation in IIS to target a particular version of the framework.
Generally it is also advisable to create multiple application pools in IIS one for each of the versions you will be using.
Web apps for different version of .net should not share the same application pool.
For an exe or other assembly you can check at runtime in your code which version the current assemhbly is running in.