[已关闭问题]
<DIV class=postText>服务器环境:Win 2003 / IIS6 / ASP.NET AJAX 1.0 / C# 2.0<BR><BR>使用ASP.NET AJAX 1.0开发的一个网站,在页面提交的时候会出现如下错误信息。<BR><BR><FONT style="COLOR: red" face=Verdana>There was an error processing the request</FONT><BR><BR>在网上搜索了一下找到了<BR><FONT face=Verdana><A href="http://dotnetslackers.com/columns/ajax/AspNetAjaxExceptionLogging.aspx"><FONT color=#56662d>http://dotnetslackers.com/columns/ajax/AspNetAjaxExceptionLogging.aspx</FONT></A><BR></FONT>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #000000">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. </SPAN></DIV><BR>解决的方法很奇怪。<BR><BR>需要设置 web.config 中的customErrors为Off<BR><BR><FONT face=Verdana><customErrors mode="Off"></FONT><BR><BR>具体原因不清楚。<BR>有了解这方面信息的吗? </DIV>
金鹏
|
菜鸟二级
|
园豆:
230
提问于:2008-01-28 15:55