我希望这里有一个关于 SO 的 SharePoint 专家可以提供帮助。
这就是问题所在。我的 SharePoint 日志多次包含此行:
An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it. This object will now be disposed. Allocation Id: {8D090AD2-5D55-42C2-9873-2D5486FE257C} To determine where this object was allocated, create a registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings. Then create a new DWORD named SPRequestStackTrace with the value 1 under this key.
我编辑了注册表并添加了密钥,但找不到堆栈跟踪。它不在 SharePoint 日志或事件查看器中。
我真的需要找到这些 SPSite/SPWeb 泄漏的来源并修复它们,但我不能只是开始编辑可能是也可能不是问题根源的代码。有没有人有什么建议?