Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iis 7 为什么我们在IIS7.5下的web.config中的位置标签有问题?_Iis 7_Web Config_Iis 7.5 - Fatal编程技术网

Iis 7 为什么我们在IIS7.5下的web.config中的位置标签有问题?

Iis 7 为什么我们在IIS7.5下的web.config中的位置标签有问题?,iis-7,web-config,iis-7.5,Iis 7,Web Config,Iis 7.5,在IIS 7.0中,在web.config中使用location标记很好 示例: <configuration> .... <location path="export"> <system.webServer> <security> <authentication> <anonymousAuthentication enabled="false"/>

在IIS 7.0中,在web.config中使用
location
标记很好

示例:

<configuration>
....
  <location path="export">
    <system.webServer>
      <security>
        <authentication>
          <anonymousAuthentication enabled="false"/>
          <windowsAuthentication enabled="false"/>
        </authentication>
      </security>
    </system.webServer>
  </location>

....

我们最近在我们的机器上安装了Windows 7,在IIS 7.5中,所有这些
位置
标记都不再起作用了。

你能尝试
而不是吗?你可能会在serverfault.com上得到一个更快的答案,因为这是关于IIS配置的。
安全/身份验证
配置设置只适用于
system.webServer
。将其放入
system.web
将无效,事实上会导致错误。