在使用asp。net做网站的时候,经常遇到runtime error的运行时错误,提示基本一样,如下:
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>
今天使用VSS2005配置基于http的远程访问,进行 远程的版本控制。一切做好之后,提示这个错误。因为这个市vss自己创建的网站,也出错我就很迷惑了。请问高手们是如何解决这个问题的?
一般在使用asp。net编写网站的时候怎样调试?
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>
今天使用VSS2005配置基于http的远程访问,进行 远程的版本控制。一切做好之后,提示这个错误。因为这个市vss自己创建的网站,也出错我就很迷惑了。请问高手们是如何解决这个问题的?
一般在使用asp。net编写网站的时候怎样调试?
解决方案 »
- 求一个正则的写法
- 动态创建数据库表格 哪位大侠帮忙看一下
- atlas工具包哪里有的下呀
- 100分请教:如何建一棵树,很急,请各位帮忙!!!
- 繁简字体显示问题?
- 这是什么错?---未能在“设计”视图中打开。在“<%...值...%>”块中,以不同方式将值括起来
- 想用VB.net做BS但开头就遇到困难(本人只做过CS,请说的详细一点,谢谢!!)
- 如何定义类的全局的DataSet?高手过来,一旦解决立即给分,谢谢!
- 怎样在服务器端实现“返回到上一个页面”的功能?
- vs2012自带的MVC版本对路由大小写敏感吗
- Sys is undefined
- 在线等.请高手帮忙------我想在C#代码中page_load事件里设置一个gridview列中的命令是否可见
<system.web>
<customErrors mode="On"/> //或者RemoteOnly
</system.web>
</configuration> 这样调试的时候再本地就可以看到详细的出错信息了,便于调试
把asp.net帐户所以权限都给它就可以了