ASPxCallbackPanel 上的 PerformCallback 似乎没有结束
我们使用 DevExpress 的 ASP.NET 控件。
在我们的应用程序中,我们在多个地方使用 ASPxCallbackPanel
控件。回调由 ClientSideEvents.ValueChanged
处理程序内的 "CallbackPanel.PerformCallback (...)"
触发。
有时,并且仅在使用 Internet Explorer 时,加载栏和表单会被锁定。我们没有收到任何服务器错误 - 客户端只是显示加载栏,并且不会停止。
对于回调错误的推荐错误处理在我们的 Web.Config 中设置如下:
..
<modules>
<remove name="ScriptModule"/>
<remove name="ASPxHttpHandlerModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"/>
</modules>
..
<devExpress>
<compression enableHtmlCompression="true" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="true"/>
<themes enableThemesAssembly="true"/>
<errors callbackErrorRedirectUrl="~/sites/special/ErrorPage.aspx"/>
<settings rightToLeft="false"/>
</devExpress>
..
不幸的是,我们无法真正重现该错误。它只是有时会发生。有没有办法在回调上设置超时,以便加载栏在大约 30 秒后消失?或者有没有办法在挂起的情况下重定向到特殊的错误页面?
我们该如何处理这个问题呢?
We are using the ASP.NET controls from DevExpress.
In our application we use the ASPxCallbackPanel
control at various places. the callback is triggered by "CallbackPanel.PerformCallback (...)"
inside a handler of ClientSideEvents.ValueChanged
.
Sometimes, and only when using Internet Explorer, the loading bar and the form gets locked. We do not get any server error - the client is just showing the loading bar, and doesn't stop.
The recommended error handling for callback errors is set in our Web.Config as follows:
..
<modules>
<remove name="ScriptModule"/>
<remove name="ASPxHttpHandlerModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"/>
</modules>
..
<devExpress>
<compression enableHtmlCompression="true" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="true"/>
<themes enableThemesAssembly="true"/>
<errors callbackErrorRedirectUrl="~/sites/special/ErrorPage.aspx"/>
<settings rightToLeft="false"/>
</devExpress>
..
Unfortunately, we can not really reproduce the error. It just occurs sometimes. Is there a way to set a timeout on a callback, so that the loading bar disappears after about 30 seconds? Or ist there a way to redirect to a special error page in the case of a hang?
How can we handle this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已在以下位置回答您的问题:
加载栏/表单有时会在 Inernet 中挂起CallbackPanel.PerformCallback (...) 之后的资源管理器
I have answered your question at:
Loading bar / Form hangs sometimes in Inernet Explorer after CallbackPanel.PerformCallback (...)
问题出在应用程序防火墙上,我们现在已经解决了。
The problem was an Application firewall, we got this solved now.