How to use ServerManager to read IIS sites, not IIS express, from class library OR how do elevated processes handle class libraries?

前端 未结 4 554
说谎
说谎 2020-12-25 10:45

I have some utility methods that use Microsoft.Web.Administration.ServerManager that I\'ve been having some issues with. Use the following dead simple code for

4条回答
  •  [愿得一人]
    2020-12-25 11:26

    Make sure you are adding the reference to the correct Microsoft.Web.Administration, should be v7.0.0.0 that is located under c:\windows\system32\inetsrv\ It looks like you are adding a reference to IIS Express's Microsoft.Web.Administraiton which will give you that behavior

提交回复
热议问题