Sharepoint“未知错误”调试 - 但不能打开CallStack ...? [英] Sharepoint "Unknown Error" debugging - but can't turn on CallStack...?

查看:169
本文介绍了Sharepoint“未知错误”调试 - 但不能打开CallStack ...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一台机器上,启用SharePoint调试的标准方法不起作用。从 c:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config

On one dev machine, the standard method for enabling SharePoint debugging is not working. From c:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config:

<SharePoint>
  <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">...</SafeMode>
  ...
</Sharepoint>

<system.web>
  <customErrors mode="Off" />
  <compilation batch="true" debug="true">...</compilation>
  ...
</system.web>

但我仍然得到标准完全无用的SharePoint错误:

But I still get the standard completely useless SharePoint errors:

Unknown Error 
Troubleshoot issues with Windows SharePoint Services. 

我知道错误是我正在写的自定义Web部件抛出的异常,但是我找不到任何记录堆栈跟踪的地方。启用调用堆栈是我现在唯一的希望,我完全迷失了。有可能还有另一个设置或者覆盖我需要设置的web.config条目?

I know the error is an Exception being thrown by a custom web part I'm writing, but I can't find anywhere that logs the stack trace. Enabling call stacks is my only hope right now and I'm completely lost. Is it possible that there's another setting or overriding web.config entry I need to set?

谢谢!

推荐答案

好的,所以这有可能有助于别人 - 这是答案。事实证明,是的,布局目录中有一个web.config:

OK, so that this might someday help someone else - here's the answer. It turns out that yes, there is a web.config in the layouts directory:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS

这是覆盖我正在测试的特定SharePoint网址的设置。

which was overriding the setting for the particular SharePoint URL I was testing against.

开启debug&关闭自定义错误。您实际上必须添加SharePoint块,如果它缺少,像这样:

It's not enough to turn on debug & turn off custom errors. You actually have to add the SharePoint block in if it's missing, something like this:

<SharePoint>
  <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false" />
</SharePoint>

这篇关于Sharepoint“未知错误”调试 - 但不能打开CallStack ...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆