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

求助 <identity impersonate="false" />


这是放虚拟主机上的程序 出的问题 非本地运行 本地运行良好


虚拟主机:http://www.paibaodao.com/


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

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

分析器错误消息: 无法在此路径使用此配置节。当站点管理员使用继承的配置文件中的 <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  

--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET 版本:2.0.50727.3053 



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>



--------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 太多了吧!
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,