Checking version of ASP.NET on IIS

  • Thread starter Thread starter harry
  • Start date Start date
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
 
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
 
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;
}
}
 

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

Back
Top