Is setting “ASP.NET Impersonation” possible using WiX 3.x with IISExtension?

我是研究僧i 提交于 2019-12-23 17:10:30

问题


I have this component in my .wxs file:

  <Component Id="Component.IisConfiguration" Guid="[COMPONENT_GUID_IISSITE]">
    <iis:WebAppPool Id="IIS.AppPool" Name="[WEB_APP_POOL_NAME]" Identity="networkService" ManagedRuntimeVersion="v4.0" />
    <iis:WebSite Id="IIS.WebSite" Description="[WEB_APP_NAME]" SiteId="[WEB_APP_SITEID]" Directory="TARGETDIR" >          
      <iis:WebApplication Id="IIS.WebSite.Application" Name="[WEB_APP_POOL_NAME]" WebAppPool="IIS.AppPool" />
      <iis:WebAddress Id="IIS.WebSite.WebAddress.Port" Port="[WEB_APP_ADDRESS_PORT]" />
      <iis:WebDirProperties Id="IIS.WebSite.Authentication" WindowsAuthentication="yes"  />
    </iis:WebSite>
  </Component>

Is it possible to set "ASP.NET Impersonation" anywhere ?


回答1:


It seems there's no out-of-the-box switch for this. You can have a custom action which calls:

appcmd set config /commit:WEBROOT/section:identity /impersonate:true

See this article for more information.

On the other hand, you can always set this setting on the application level, and use the standard XmlConfig element to modify the web.config file for this.



来源:https://stackoverflow.com/questions/15252934/is-setting-asp-net-impersonation-possible-using-wix-3-x-with-iisextension

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