Detect development server in asp.net (Visual Studio)

1.1k Views Asked by At

Can you programatically detect if the Development server in Visual Studio is used instead of IIS?

1

There are 1 best solutions below

0
On BEST ANSWER

In Visual Studio 2010, Request.ServerVariables("SERVER_SOFTWARE") will return Nothing (null) for the Development Server, and "Microsoft-IIS/7.5" for my Win7 Pro IIS/VS2010 installation.