当前位置:编程学习 > C#/ASP.NET >>

求助 <identity impersonate="false" />

“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

配置错误 
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 

分析器错误消息: 无法在此路径使用此配置节。当站点管理员使用继承的配置文件中的 <location allowOverride="false"> 锁定对此节的访问时会出现这种情况。

源错误: 


行 49:  -->
行 50:  <customErrors mode="Off"></customErrors>
行 51:         <identity impersonate="false" />
行 52:  </system.web>
行 53:     <system.webServer>
 

源文件: d:\freehost\paibaodao\web\web.config    行: 51 





web.config:



<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    注意: 除了手动编辑此文件以外,您还可以使用 
    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
     “网站”->“Asp.Net 配置”选项。
    设置和注释的完整列表在 
    machine.config.comments 中,该文件通常位于 
    \Windows\Microsoft.Net\Framework\v2.x\Config 中
    xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings />
<connectionStrings />

  
<system.web>
    <pages validateRequest="false" />
    <!-- 
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。  defaultLanguage="c#" 
            fileEncoding="utf-8" responseEncoding ="utf-8" requestEncoding="utf-8" 
        -->
<globalization fileEncoding="utf-8" responseEncoding="utf-8" requestEncoding="utf-8">
</globalization>
<compilation debug="true" defaultLanguage="c#">
<assemblies>
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies>
</compilation>
<!--
            通过 <authentication> 节可以配置 ASP.NET 使用的 
            安全身份验证模式,
            以标识传入的用户。 
        -->
<authentication mode="None" />
<!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
 -->
<customErrors mode="Off"></customErrors>
        <identity impersonate="false" />
</system.web>
    <system.webServer>
        <defaultDocument enabled="true">
            <files>
                <add value="index.aspx" />
            </files>
        </defaultDocument>
        <directoryBrowse enabled="true" />
    </system.webServer>
</configuration>



--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET 版本:2.0.50727.3053  --------------------编程问答-------------------- 虚拟目录里面的webconfig不继承网站的设置  
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config这个文件中 <identity impersonate=”true”/> --------------------编程问答-------------------- 这是放虚拟主机上的程序 出的问题 非本地运行 本地运行良好 --------------------编程问答-------------------- 不懂!新来,多多学习!
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,