首页 新闻 会员 周边 捐助

There was an error processing

0
[已关闭问题]
<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&nbsp;interesting&nbsp;thing&nbsp;I&nbsp;found&nbsp;when&nbsp;working&nbsp;with&nbsp;client&nbsp;exceptions&nbsp;is,&nbsp;when&nbsp;a&nbsp;server&nbsp;side&nbsp;exception&nbsp;(Web&nbsp;Service,&nbsp;Update&nbsp;Panel)&nbsp;is&nbsp;generated&nbsp;you&nbsp;will&nbsp;find&nbsp;the&nbsp;actual&nbsp;exception&nbsp;message,&nbsp;type,&nbsp;stack&nbsp;trace&nbsp;of&nbsp;that&nbsp;exception&nbsp;in&nbsp;JavaScript.&nbsp;Once&nbsp;you&nbsp;set&nbsp;the&nbsp;customErrors&nbsp;mode&nbsp;to&nbsp;On&nbsp;in&nbsp;the&nbsp;web.config&nbsp;file&nbsp;(recommended)&nbsp;when&nbsp;deploying&nbsp;the&nbsp;website,&nbsp;you'll&nbsp;obtain&nbsp;the&nbsp;generic&nbsp;message&nbsp;"There&nbsp;was&nbsp;an&nbsp;error&nbsp;processing&nbsp;the&nbsp;request"&nbsp;and&nbsp;no&nbsp;exception&nbsp;type&nbsp;and&nbsp;stack&nbsp;trace.&nbsp;I&nbsp;think&nbsp;this&nbsp;is&nbsp;unfortunate;&nbsp;at&nbsp;least&nbsp;the&nbsp;exception&nbsp;message&nbsp;and&nbsp;type&nbsp;should&nbsp;be&nbsp;present&nbsp;on&nbsp;the&nbsp;client&nbsp;side.&nbsp;May&nbsp;be&nbsp;the&nbsp;ASP.NET&nbsp;AJAX&nbsp;Team&nbsp;will&nbsp;consider&nbsp;this&nbsp;in&nbsp;future&nbsp;release.&nbsp;</SPAN></DIV><BR>解决的方法很奇怪。<BR><BR>需要设置 web.config 中的customErrors为Off<BR><BR><FONT face=Verdana>&lt;customErrors mode="Off"&gt;</FONT><BR><BR>具体原因不清楚。<BR>有了解这方面信息的吗? </DIV>
金鹏的主页 金鹏 | 菜鸟二级 | 园豆:230
提问于:2008-01-28 15:55
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册