C# 我在哪里放置overrideMode=";“否认”;在mt配置中

C# 我在哪里放置overrideMode=";“否认”;在mt配置中,c#,asp.net,config,C#,Asp.net,Config,我在下面得到了这个错误 HTTP错误500.19-内部服务器错误 无法访问请求的页面,因为该页面的相关配置数据无效 详细错误信息 模块认证 通知AuthenticateRequest 处理程序ExtensionlessUrl Handler-Integrated-4.0 错误代码0x80070021 配置错误此配置节不能用于此路径。 当节在父级锁定时会发生这种情况。锁定是通过 默认值(overrideModeDefault=“Deny”),或由带有 overrideMode=“Deny”或旧版a

我在下面得到了这个错误

HTTP错误500.19-内部服务器错误 无法访问请求的页面,因为该页面的相关配置数据无效

详细错误信息

模块认证

通知AuthenticateRequest

处理程序ExtensionlessUrl

Handler-Integrated-4.0

错误代码0x80070021

配置错误此配置节不能用于此路径。 当节在父级锁定时会发生这种情况。锁定是通过 默认值(overrideModeDefault=“Deny”),或由带有 overrideMode=“Deny”或旧版allowOverride=“false”

这是我的配置文件

<configuration>
<connectionStrings>
    <add name="DBConnection" connectionString="data source=12.12.16.117;Initial Catalog=web_prof_global; User ID=1111;Password=1111;persist security info=True;packet size=4096" providerName="System.Data.SqlClient" />
    <add name="DBConnectionSf" connectionString="data source=12.12.16.117;Initial Catalog=webCommon; User ID=1111;Password=1111;persist security info=True;packet size=4096" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
    <compilation debug="false" targetFramework="4.0" />
</system.web>
   <system.webServer>
    <security>
        <authentication>
            <basicAuthentication enabled="true" />
        </authentication>
    </security>
<modules runAllManagedModulesForAllRequests="true"  />

    <defaultDocument>
        <files>
            <add value="s-f.aspx" />
        </files>
    </defaultDocument>

</system.webServer>


</configuration>


你能帮忙吗

你的网站是如何托管的?如果是IIS-那么它是否安装正确?是否有其他站点(在同一台主机上成功运行)?外部主机提供程序。我没有访问IIS的权限。这是一个附加到站点上的模块。有自己的配置文件OK,我明白了。它是在集成的还是经典的“托管管道模式”下运行?它在本地或测试环境中工作?管理管道模式已配置为集成模式。它在我的服务器上运行良好。我已经迁移到一个新服务器,它出现了错误