Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the exception call stack in SharePoint 2010?

I am trying to port a SharePoint 2007 site collection feature to 2010. During the feature activation, SharePoint shows the "yellow screen of death" stating "The current custom error settings for this application prevent the details of the application error from being viewed.".

AFAIK I have configured everything that is need to see the error: in c:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config I have set

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

<SharePoint>
  <SafeMode CallStack="true" />

(other attributes/tags ommited for brevity)

This was enough for SharePoint 2007 to display the full stack trace. Am I missing something for 2010?

like image 334
skolima Avatar asked Sep 01 '10 09:09

skolima


People also ask

How can I see my call stack?

To open the Call Stack window in Visual Studio, from the Debug menu, choose Windows>Call Stack. To set the local context to a particular row in the stack trace display, select and hold (or double click) the first column of the row.

What is the shortcut key combination for call stack?

In the Call Stack window, open the shortcut menu. Choose Show Call Stack on Code Map (Ctrl + Shift + `).

How can I see the call stack code in Visual Studio?

To display the call stack window you must first start your code in debug mode. Either start your application using the Step Into command or use a breakpoint to halt execution. You can then show the window by opening the "Debug" menu, expanding its "Windows" submenu and selecting "Call Stack".


1 Answers

Ran into this as well. Had to modify web.config in 14 Root to enable it: set <customErrors mode="Off" /> in file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config .

like image 189
Shane Avatar answered Oct 04 '22 20:10

Shane