? ASP.NET最常见错误提示
阅读新闻

ASP.NET最常见错误提示

[日期?span id="TimeLabel">2008-03-19] 来源?span id="SourceLabel">68design.net  作者: [字体?a href="javascript:ContentSize(16)">?/a> ?/a> ?/a>]

Runtime Error
运行时错?/P>

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止查看应用程序错误的详细信息?/P>

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
详细信息: 若要使他人能够从本地服务器计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一?<customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“RemoteOnly”。若要使他人能够在远程计算机上查看详细信息,请将“mode”设置为“Off”?

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
注释: 通过修改应用程序?<customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页?URL,可以用自定义错误页替换所看到的当前错误页?/P>

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>


    </system.web>
</configuration>



阅读?span id="news_hits"> ?br/> 录入?span id="MemberNameLabel">admin

?评论 ? ?推荐 ? ?打印 ?
上一篇:ASPImage组件制作水印的实现过?/a>
下一篇:
ASP.Net中Session失效的一种编程思路
相关新闻      
本文评论       全部评论
发表评论


点评? 字数
姓名?

  • 尊重网上道德,遵守中华人民共和国的各项有关法律法?/li>
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评?/li>
  • 参与本评论即表明您已经阅读并接受上述条款