【问题标题】:Is "management" section not allowed in web.config?web.config 中是否不允许“管理”部分?
【发布时间】:2012-10-02 19:20:19
【问题描述】:

我正在尝试通过 web.config 将用户添加到 IIS 管理器,但每当我添加以下行时,网站就会停止工作并显示 web.config 无效。

如果我在administration.config 中添加这些行,网站就可以工作,但我喜欢通过坚持使用web.config 来保持范围较小。

<system.webServer>
  <management>
    <authorization defaultProvider="ConfigurationAuthorizationProvider">
      <authorizationRules>
        <scope path="/MyApp">
          <add name="domain\user" />
        </scope>
      </authorizationRules>
    </authorization>
  </management>
</system.webServer>

【问题讨论】:

    标签: asp.net iis iis-7 web-config asp.net-4.0


    【解决方案1】:

    简单的 Google 搜索即可回答您的问题。

    IIS Management element

    从那个页面:

    注意:管理元素中的设置只能在 Administration.config 文件中进行配置。

    【讨论】:

      猜你喜欢
      • 2021-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-09
      • 2016-07-27
      • 1970-01-01
      • 2019-02-13
      • 1970-01-01
      相关资源
      最近更新 更多