【问题标题】:Sys.WebForms.PageRequestManagerParserErrorException: Error parsing near '<HTML dir="ltr">Sys.WebForms.PageRequestManagerParserErrorException:在 '<HTML dir="ltr"> 附近解析错误
【发布时间】:2012-01-10 03:42:30
【问题描述】:

我在 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......

请告诉我解决这个问题

【问题讨论】:

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


    【解决方案1】:

    这意味着 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" 即可查看实际错误。

    【讨论】:

    • 我没有看到任何未知错误页面,而且我在配置文件中已经有 CallStack="true"。
    • 监控调用,你不会在页面中看到错误,除非你覆盖javascript或者使用浏览器,这样更容易。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-19
    • 2021-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-05
    相关资源
    最近更新 更多