ASP.NET AJAX错误:Sys.WebForms.PageRequestManagerParserErrorException [英] ASP.NET Ajax Error: Sys.WebForms.PageRequestManagerParserErrorException

查看:208
本文介绍了ASP.NET AJAX错误:Sys.WebForms.PageRequestManagerParserErrorException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图进行的任意的阿贾克斯活动时,我的网站已经给我的间歇性错误。我得到的消息是

My website has been giving me intermittent errors when trying to perform any Ajax activities. The message I get is

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near '

<!DOCTYPE html P'.

因此​​,它显然是某种服务器超时或服务器只是返回回错位垃圾。这通常,遗憾的是并不总是,happe

So its obviously some sort of server timeout or the server's just returning back mangled garbage. This generally, unfortunately not always, happe

推荐答案

有由Eilon立顿一个优秀的博客条目。它包含了许多关于如何避免这个错误提示:

There is an excellent blog entry by Eilon Lipton. It contains of lot of tips on how to avoid this error:

<一个href="http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx">Sys.WebForms.PageRequestManagerParserErrorException - 它是什么以及如何避免它

Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it

阅读评论了。还有人对同样的问题的注释:我解决它改变了我的应用程序池的服务器的空闲时间在IIS 这是只有5个,所以我增加了它,现在的作品

Read the comments too. There is a comment of somebody with the same problem: "I solved it changing server idle time of my app pool on IIS. It was only 5, so I incremented it and now works."

的UpdatePanel控件使用异步回发来控制页面的部分得到呈现。为此,它使用在客户端上一大堆的JavaScript和服务器上一大堆的C#。

异步回发是完全一样的普通的回传,除了一件重要的事情:渲染。通过相同的生命周期事件作为常规页面异步回发去(这是一个问题,我被经常问)。

只是在呈现阶段做的事情变得不同。我们捕获仅我们关心和下来使用特殊的格式发送给客户端的的UpdatePanel的呈现。另外,我们送了一些其它信息,如网页标题,隐藏的表单值,表单操作URL和脚本列表中。

该错误最常见的原因:

  1. 拨打的Response.Write():
  2. 响应滤波器
  3. 的HttpModules
  4. 在服务器启用跟踪
  5. 拨打的Server.Transfer()

这篇关于ASP.NET AJAX错误:Sys.WebForms.PageRequestManagerParserErrorException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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