IIS 7.5错误无法访问所请求的资源

时间:2012-01-16 19:14:22

标签: asp.net iis-7 asp-classic iis-7.5

我正试图解决我的问题。我给出了所有配置问题,但仍然出现此错误

The requested page cannot be accessed because the related configuration data for the page is invalid.
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".  
Config File \\?\C:\inetpub\wwwroot\WebSetup1\web.config 

</modules>
  116:   <handlers>
  117:    <remove name="WebServiceHandlerFactory-Integrated" />

我也可以访问Allow和in模块,但仍然会收到此错误 使用带有IIS 7.5 + ASP.Net 3.5的窗口7 任何想法?

2 个答案:

答案 0 :(得分:0)

对于用户权限,IIS 7.5是一个熊。我会检查你的应用程序的defaultapppool或IIS用户是否有权访问该目录。希望这会有所帮助。

答案 1 :(得分:0)

尝试在web.config中使用

<system.webServer>
      <validation validateIntegratedModeConfiguration="false" />
      <!-- ... -->
    </system.webServer>