Sharepoint ULS logs (An SPRequest object was not disposed before the end of this thread)
Hi in the sharepoint ULS logs i get the below message, 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: {D6EA2FD0-5FFC-466F-A536-9C974F30625E} 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. if you ask me, do we have custom webparts, the answer is Yes. when i try to create a registry key in the registry as suggedted, i dont fine the "HeapSettings" please advice. Thanks,Satyam
February 26th, 2010 2:49am

Just reread the messsage one more time:CREATE a registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettingsCREATE a new DWORD named SPRequestStackTrace with the value 1 under this keyMain meaning is that somewhere in your custom code you don't despose SharePoint objects right.Here are the best practices document from Microsoft that will help you:http://msdn.microsoft.com/en-us/library/aa973248.aspxHere is the SharePoint Dispose Checker tool to help you to find the problem.http://code.msdn.microsoft.com/SPDisposeCheck Paul Shkurikhin blog.sharepointalist.com
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2010 8:03am

ha ha..Thank you Paul.Thanks,Satyam
March 2nd, 2010 2:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics