logo

如何判断 ASP.NET 程序是在 IIS Server 中运行的还是在 Visual Studio ASP.NET Development Server 中运行的?

作者:孟宪会 阅读:1193 发表于:2011-01-21 15:14:14

直接判断 Request.ServerVariables["SERVER_SOFTWARE"] 就可以了,Visual Studio ASP.NET Development Server 中该值为空。