我在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......
请建议我解决此
这意味着Ajax响应中存在错误,通常是SharePoint中臭名昭著的"未知错误",这里有一些链接可以帮助您了解发生了什么:
Chrome 中的Ajax请求监控
Firebug(Firefox)上的相同交易
如果获得"未知错误"页面,只需编辑SharePoint网站WebApplication的web.config(C:\inetpub\wwwroot\wss\virtualdirectories\sitename80\web.config),然后将CallStack="true"更改为查看实际错误。