Runtime Error
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. 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.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.
<!-- Web.Config Configuration File --><configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
我的web.config
<?xml version="1.0"?>
<!--
注意: 除了手动编辑此文件以外,您还可以使用
Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
“网站”->“Asp.Net 配置”选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于
\Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="tyConnectionString" connectionString="Data Source=.;Initial Catalog=ty;User ID=sa;Password=sasa"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
设置 compilation debug="true" 将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为 true。
<httpRuntime maxRequestLength="2097151" executionTimeout="60"/>
-->
<compilation debug="true"/>
<!--
通过 <authentication> 节可以配置 ASP.NET 使用的
安全身份验证模式,
以标识传入的用户。
-->
<authentication mode="Windows"/>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。 <customErrors mode="off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors> -->
</system.web>
</configuration>
解决方案 »
- 图片轮转问题
- 请教 BS GridView 如何置为可输入状态? (非往表格内添加TextBox)
- 初学者请教某网站内的3个效果如何实现
- 请问一下一个中文网站怎么转换为一个英文网站?
- 最后10分。献给建立数据库连接池问题。请问这样有必要吗?在什么情况下有必要?
- 问个初级的问题(有关网页执行先后顺序)
- 使用jQuery动态向页面添加元素后,这些元素对页面原有的jQuery想过没反应。如果把代码静态方式复制到页面中就没问题。。
- 如何取出DetailsView中已更新后的值,谢谢
- 以下这段asp代码如何改写成asp.net代码(vb),并且用datagrid显示出来?
- 奇怪的代码,帮我看看
- 登录163邮箱后,有新邮件时,即使不在那个浏览器的界面,在其他应用程序界面上,右下角也会浮动出消息提示框,如何做到的覆盖其他应用程序的呢?
- submit 如何向多个表单提交
把customErrors節的mode的RemoteOnly值改為Off
你就可以在客戶端看到詳細的錯誤了