The Data Access quickstart does not include the latest refactorings that were performed on the Contoso Training Management Reference Implementation version of the Repository project.


When exceptions occur in SharePoint, they are caught and a general error message is presented to the user. Sometimes it is useful to see the entire call stack instead of the generic SharePoint error message. The following demonstrates how to view detailed error messages including the entire call stack.
Enabling the Call Stack
1) Locate and open the target SharePoint application’s web.config file. The typical location for the web.config file is c:\inetput\wss\VirtualDirectories\<port number>.
2) Find the "SafeMode element" and change the "CallStack" attribute to “true”.
<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
3) Find the "customErrors" element and change the "mode" attribute to “Off”.
<customErrors mode="Off" />
4) Find the "compilation" element and change the "debug" attribute to the “true”.
<compilation batch="false" debug="true">


The Windows SharePoint Services 3.0 SP1 Developer Evaluation VPC Image available form Microsoft Downloads is not configured to use custom errors. Parts of the training management reference implementation is is developed to take advantage of the SharePoint custom error page. To enable custom errors, perform the following steps:
1) Locate and open the target SharePoint application’s web.config file. The location for the web.config file is c:\inetput\wss\VirtualDirectories\80.
2) Find "SafeMode" element and change the "CallStack" attribute to "false".
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
3) Find the "CustomErrors" element and change the "mode" attribute to "On".
<customErrors mode="On" />

Last edited Aug 18, 2009 at 5:43 PM by fcheung, version 5

Comments

No comments yet.