【发布时间】: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