How to detect IIS version using C#?

后端 未结 11 1861
栀梦
栀梦 2020-11-30 02:17

How to detect IIS version using C#?

Update: I meant from a winapp (actually the scenario is developing a custom installer that wants to check the version of the inst

11条回答
  •  一个人的身影
    2020-11-30 02:49

    Use System.Web.HttpRequest.ServerVariables("SERVER_SOFTWARE"). The return value is a string in the format name/version.

提交回复
热议问题