Alex Rivera | Logout

How can I know under which IIS version my Asp.Net application is running?

Asked 2009-07-01T11:13:43.690
12


How can I know under which IIS version my web application is running in development server?
As .Net framework 2.0,3.0,3.5,4.0 have support built in IIS....
Thanks

Edit
Report

1 Answer

14

To get the IIS version of the webserver you can use the SERVER_SOFTWARE server variable.

Request.ServerVariables["SERVER_SOFTWARE"];

It will return something like as follows:

Microsoft-IIS/5.0 (Windows 2000)

Microsoft-IIS/5.1 (Windows XP)

Microsoft-IIS/6.0 (Windows 2003 Server)

You can find a full reference of server variables here.

answered 2009-07-01T11:36:25.610

Your Answer