Loading SOS For sometime now I have relied on windbg to show me exceptions occuring in SharePoint. You can attach windbg to any process and view the .NET exceptions occuring at runtime between the process and the CLR, even handled exceptions. Usually the true source of the error is hidden in a wrapper and rethrown as an irrelevant exception. Thank you SharePoint. In order to view these exceptions we can attach windbg to either the w3wp.exe related to your IIS website running the SharePoint site by clicking Start => Run => inetmgr => Click on server => Worker processes, or by powershell if you are executing or can execute the relevant command through powershell you can attach the to powershell.exe process. After launching windbg and attaching to a process we need to load the Sons of Strike SOS.dll to enable viewing managed exceptions in windbg, without the SOS dll we can only view native code. To do this within the windbg command prompt of the atta...
Comments
Post a Comment