Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码...... [英] Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server...

查看:105
本文介绍了Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们好,



Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码是:12031

当我保存到数据库时出现此错误。

Hello friends,

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031
I am getting this error when i am saving to database.

推荐答案

如果我理解你正确的,它是你页面中的UpdatePanel问题,这里是ScriptManager中的EnablePartialRendering为false的解决方案



我认为它可以帮助某人
If I understood you correctly, it is an UpdatePanel problem in your page, here is the solution set EnablePartialRendering to false in the ScriptManager

I think it may help somebody

< br>

首先请检查您的Asp.Net Ajax扩展和Ajax ControlToolkit(如果已使用)的版本。更新到最新。如果没有,你应该检查你的设置,如web.config和你的C#代码。



顺便说一句,基于错误描述,它看起来很像设置错误。



12031 ERROR_INTERNET_CONNECTION_RESET

与服务器的连接已重置。



如果您的问题无法解决,请分享更多代码。
Please first check your Asp.Net Ajax Extension and Ajax ControlToolkit (if been used) ' s version. Update to the latest.If not, you should check your settings such as web.config and your C# code.

By the way , based on the error description, it looks mostly like some setting errors.

12031 ERROR_INTERNET_CONNECTION_RESET
The connection with the server has been reset.

If your problem cannot been resolved , please share more code.


如果您是从updatePanel获取的,请设置< b>在ScriptManager中为页面启用EnablePartialRendering =false,然后它会给你实际的错误。



另外,如果它只发生偶尔,我发现它可能是一个viewstate问题,特别是当页面在刷新之间很长时间(20分钟左右)时。



否则,尝试一些尝试/捕获块。这些是一些简单的方法。



希望有所帮助!



谢谢
If you're getting that from an updatePanel, set EnablePartialRendering="false" in the ScriptManager for the page, and then it should give you the actual error.

Also, if it only happens occasionally, I've found that it could be a viewstate problem, especially when the page goes a long time (20mins or so) between refreshes.

Otherwise, try some try/catch blocks. Those are some easy methods.

Hope that helps!

Thanks

这篇关于Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆