[已解决问题] There was an error processing
提问时间: 2008-01-28 15:55
浏览:367 次
服务器环境:Win 2003 / IIS6 / ASP.NET AJAX 1.0 / C# 2.0

使用ASP.NET AJAX 1.0开发的一个网站,在页面提交的时候会出现如下错误信息。

There was an error processing the request

在网上搜索了一下找到了
http://dotnetslackers.com/columns/ajax/AspNetAjaxExceptionLogging.aspx
Another interesting thing I found when working with client exceptions is, when a server side exception (Web Service, Update Panel) is generated you will find the actual exception message, type, stack trace of that exception in JavaScript. Once you set the customErrors mode to On in the web.config file (recommended) when deploying the website, you'll obtain the generic message "There was an error processing the request" and no exception type and stack trace. I think this is unfortunate; at least the exception message and type should be present on the client side. May be the ASP.NET AJAX Team will consider this in future release. 

解决的方法很奇怪。

需要设置 web.config 中的customErrors为Off

<customErrors mode="Off">

具体原因不清楚。
有了解这方面信息的吗?
提问者:金鹏 - 菜鸟二级
所有回答(1)
否则你看不到错误的具体细节,怎么排查啊?
8个月前   回答者:沙加 - 老鸟四级
评论
8个月前   金鹏 :
re : 沙加
不是为了查看错误细节而设置customErrors为Off,而是设置为Off后才不会出现这个错误提示。
   您需要登录以后才能回答!
 

我要提问

我的问题


快到期问题

> 问题排行榜

相关内容

相关链接