Checking version of ASP.NET on IIS

H

harry

How would I check to see which version of ASP.NET my IIS is running. And how
would I change it?

On one machine, I am running XP and the IIS was running ASP.NET 2.0. My app
was written using 1.1 and when I started VS.NET, I got an error saying that
my webserver was running a different version than 1.1. I was able to find
the version and change it in the IIS. But I also am doing some work in
Windows 2000 and I cannot find where I can check the ASP.NET version and
don't know how to change it. Can anyone help?

Thanks
Harry
 
J

John Timney \(Microsoft MVP\)

The installed version on win2K will typically be under the winnt directory
in the microsoft.net area. To change a server to use a different version
than the current version you should run the aspnet_regiss.exe within that
version.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
M

Mark Rae

How would I check to see which version of ASP.NET my IIS is running.

switch(System.Environment.Version.ToString())
{
case "1.0.3705.000" :
{
Response.Write(" (.NET 1.0)");
break;
}
case "1.0.3705.209" :
{
Response.Write(" (.NET 1.0 SP1)");
break;
}
case "1.0.3705.288" :
{
Response.Write(" (.NET 1.0 SP2)");
break;
}
case "1.0.3705.6018" :
{
Response.Write(" (.NET 1.0 SP3)");
break;
}
case "1.1.4322.573" :
{
Response.Write(" (.NET 1.1)");
break;
}
case "1.1.4322.2032" :
{
Response.Write(" (.NET 1.1 SP1)");
break;
}
}
 
Joined
Oct 9, 2006
Messages
2
Reaction score
0
Updates to Mark's useful script?

Just to bump this one -- if anyone can give me the list of version #'s to Version/SP
ie: "1.1.4322.2032" -> .NET 1.1 SP1 after Net 1.1 SP1;
I will test and put back a VB and C# version here.

~Bill



Hi Mark:

Just wondering if you have an updated version of your useful script below?

~Bill


Mark Rae said:

> How would I check to see which version of ASP.NET my IIS is running.


switch(System.Environment.Version.ToString())
{
case "1.0.3705.000" :
{
Response.Write(" (.NET 1.0)");
break;
}
case "1.0.3705.209" :
{
Response.Write(" (.NET 1.0 SP1)");
break;
}
case "1.0.3705.288" :
{
Response.Write(" (.NET 1.0 SP2)");
break;
}
case "1.0.3705.6018" :
{
Response.Write(" (.NET 1.0 SP3)");
break;
}
case "1.1.4322.573" :
{
Response.Write(" (.NET 1.1)");
break;
}
case "1.1.4322.2032" :
{
Response.Write(" (.NET 1.1 SP1)");
break;
}
}
 
Last edited:
Joined
Oct 9, 2006
Messages
2
Reaction score
0
Just to bump this one -- if anyone can give me the list of version #'s ->to->Version/SP

ie: "1.1.4322.2032" -> .NET 1.1 SP1 after Net 1.1 SP1;
I will test and put back a VB and C# version here.

~Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,296
Latest member
HeikeHolli

Latest Threads

Top