避免 SharePoint 默认错误屏幕
我正在为 SharePoint 开发自定义组件,当我收到一些错误时,我会从 SharePoint 获得默认错误屏幕。有没有办法避免它并得到 IIS asp 错误? 此外,SharePoint 日志是获取有关错误和异常的更多信息的唯一地方吗?
谢谢你,再见...
I'm developing custom component for SharePoint and when I get some errors I get from SharePoint the default error screen. Is there a way to avoid it and get the IIS asp error instead?
Moreover, are SharePoint Logs the only place to get more information about errors and exceptions?
Thank you, bye bye...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您使用的是哪个版本的 SharePoint?
如果您使用的是 SharePoint 2010,则可以启用开发人员仪表板来访问调试信息,包括跟踪日志。请参阅 http://blogs.technet.com/b/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx
您还可以在以下位置启用 ASP.NET 跟踪:您的 web.config 文件(小心)以获取有关错误的跟踪信息。请参阅 http://msdn.microsoft.com/en-us/library/bb386420。 ASPX
What version of SharePoint are you using?
If you're using SharePoint 2010, you can enable the Developer Dashboard to get access to debug information, including trace logs. See http://blogs.technet.com/b/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx
You can also enable ASP.NET Tracing in your web.config file (be careful) to get trace information about the error. See http://msdn.microsoft.com/en-us/library/bb386420.aspx
如果在“某些错误”下您的意思是访问被拒绝的情况,您需要关闭重定向到“以其他用户身份登录”页面的默认处理。请参阅 CatchAccessDeniedException (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.catchaccessdeniedException.aspx)
If under "some errors" you mean access denied cases you need to turn off default handling that redirects to "sign in as other user" page. See CatchAccessDeniedException (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.catchaccessdeniedexception.aspx)