Sys.WebForms.PageRequestManagerParserErrorException:解析附近的错误'

时间:2012-01-09 18:46:28

标签: c# asp.net ajax sharepoint sharepoint-2007

我在sharePoint _layout文件夹中有aspx。此页面从controltemplates文件夹加载用户控件。用户控件具有ajax更新面板。

我在使用页面时遇到错误。

Message: 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 '<HTML dir="ltr">
        <H'.
        Line: 4723
        Char: 21
        Code: 0
        URI: http://mysitename.com/ScriptResource.axd?d=5kqA7Nw-EeaK3p4QkMYAWi......

请告诉我解决此问题

1 个答案:

答案 0 :(得分:0)

这意味着Ajax响应中存在错误,通常是SharePoint中臭名昭着的“未知错误”,这里有一些链接可以帮助您了解发生的情况:

Ajax Request Monitoring in Chrome

Same deal on Firebug (Firefox)

如果您收到“未知错误”页面,只需编辑SharePoint站点WebApplication(C:\ inetpub \ wwwroot \ wss \ virtualdirectories \ sitename80 \ web.config)的web.config并更改CallStack =“true”即可查看实际错误。