ASP.NET报异常Server Error in '/' Application.

wxxloveu 2010-12-27 09:09:58
Server Error in '/' Application.
--------------------------------------------------------------------------------

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>

...全文
81 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wxxloveu 2010-12-27
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 jyk 的回复:]
查看IIS的网站的“属性”对话框里的“asp.net”标签。

再有可能就是数据库连接的问题了,不过估计这个可能性不大。
[/Quote]
[Quote=引用 7 楼 wuyq11 的回复:]
设置customErrors mode="Off"看详细的错误信息
看服务器事件查看器
[/Quote]
[Quote=引用 5 楼 maco_wang 的回复:]
看不到明确的错误信息,先把错误页取消了。
[/Quote]
[Quote=引用 4 楼 cpp2017 的回复:]
有服务器上访问一下,看看详细错误是什么。
[/Quote]
[Quote=引用 2 楼 phil999 的回复:]
<customErrors mode="Off"/> 这个设置一下,看看错误是什么,找到错误之后改回原值
[/Quote]
好的,谢谢,貌似只能这样了,谢谢这么晚还来留言的同仁,谢谢
wxxloveu 2010-12-27
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 jyk 的回复:]
是不是版本的问题呀。

如果你的程序是.net 2.0(3.0\3.5)的,那么在IIS里面的网站的设置,也要是.net2.0的。

如果网站的设置是.net1.1的话,就会出错。

你的这个错误好像是这个。
[/Quote]
不会是这个,因为其他的页面和模块都正常
wuyq11 2010-12-27
  • 打赏
  • 举报
回复
设置customErrors mode="Off"看详细的错误信息
看服务器事件查看器
自然框架 2010-12-27
  • 打赏
  • 举报
回复
查看IIS的网站的“属性”对话框里的“asp.net”标签。

再有可能就是数据库连接的问题了,不过估计这个可能性不大。

叶子 2010-12-27
  • 打赏
  • 举报
回复
看不到明确的错误信息,先把错误页取消了。
cpp2017 2010-12-27
  • 打赏
  • 举报
回复
有服务器上访问一下,看看详细错误是什么。
自然框架 2010-12-27
  • 打赏
  • 举报
回复
是不是版本的问题呀。

如果你的程序是.net 2.0(3.0\3.5)的,那么在IIS里面的网站的设置,也要是.net2.0的。

如果网站的设置是.net1.1的话,就会出错。

你的这个错误好像是这个。


phil999 2010-12-27
  • 打赏
  • 举报
回复
<customErrors mode="Off"/> 这个设置一下,看看错误是什么,找到错误之后改回原值
wxxloveu 2010-12-27
  • 打赏
  • 举报
回复
很郁闷啊,测试时在任何电脑上安装部署都可以,但是在公司服务器上部署后就报这个错误,并且只有一个页面报这个错误,一般是什么问题呢?权限?

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧