0
我打算在SharePoint 2007中创建自定义错误页面,当错误命中时,错误描述应该存储到错误日志文件中。如何从Sharepoint获取错误日志
以前使用的方法是指http://www.codeproject.com/KB/sharepoint....077#xx3798077xx,但由于具有网络负载平衡器,它遇到了不一致性错误消息,因此它在两台服务器之间路由并导致该问题。
HttpContext Context = HttpContext.Current;
Exception exception;
for (exception = Context.Server.GetLastError();
exception.InnerException != null;
exception = exception.InnerException) { }
得到的异常对象由于服务器之间的路由而已经是错误的。
有关如何从Sharepoint获取错误日志的任何建议?例如:使用SharePoint SDK获取错误日志...