How to detect IIS Express version?

一曲冷凌霜 提交于 2019-12-10 12:28:21

问题


I have found that our ASP.NET application runs differently on different machines in IIS Express. All have VS 2012, .Net 4.5 and Integrated mode. But some has VS 2012 Update 1, some not.

How do I find IIS Express version?


回答1:


Browse to "C:\Program Files\IIS Express", select the file iisexpress.exe, press Alt+Enter to open the properties dialog, click on the Details tab and read the product version.




回答2:


HttpRuntime.IISVersion will give you the major and minor version of IIS (e.g., 8.0).

System.Diagnostics.Process.GetCurrentProcess().MainModule.FileVersionInfo will give you much more information, including the file version and build flavor (e.g., 8.0.8418.0 (winmain(eokim).120521-1311)).



来源:https://stackoverflow.com/questions/15839532/how-to-detect-iis-express-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!