Project Description

SharePoint Error Reporting set up a custom error page to provides error and debug information to the site administrator.

No longer an Unexpected Error Has Occurred, or Unknown Error message.
[Windows SharePoint Services]

How It Works


1. An Error has Occurred - When an error is identified or thrown, the user is redirected to the error.aspx page.

2. Collects the data - Gather information about the user (browser, IP, front-end, language and etc.) and the current site (URL, title).

3. Optional Description - Users provide a description before the error is sent.

4. Store the Error and User information - Store the data in the Error Reporting list on the Central Administration.

5. You Get an Email (optional) - Email alerts notify you of SharePoint error.

For Administrators

1. Backup the Error.aspx file - Create a LayoutsBackup folder in the following location C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Layouts\LayoutsBackup to contain a backup of the originally installed file. Copy the originally installed Error.aspx file from the Layouts folder (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Layouts) to the Layouts_Backup folder.

2. Install the Solution - Deploy the SharePoint Error Reporting wsp solution

3. Activate the Feature - Central Administration > Operations > Manage Farm Features > SharePoint Error Reporting

4. Letting Alerts Notify You of SharePoint Error - You can turn alerts on by opening the Actions drop-down menu in the Error Reporting list and selecting the Alert Me option.

For Developers (optional)

Place try-catch blocks around your application code and add the SPUtility.Redirect method.

try
{
// code that could throw an exception
}
catch (Exception ex)
{
// code that executes when exception is thrown
SPUtility.Redirect(SPContext.Current.Web.Url + "/_layouts/Error.aspx?err=" + ex.Message, SPRedirectFlags.UseSource, HttpContext.Current);
}

ser0.JPG

ser11.JPG

ser2.JPG

ser3.JPG

Help support the project - Make a donation!

This project is a free open source project that is developed in my personal time. You can support this project by donating via PayPal, any amount of compensation is greatly appreciated. Donations also help keep the project open source and free for the community. If you would like to make a donation to the project, click the link below to be directed to PayPal. Thank you!

support the project

About the Author

Alon Havivi is a Microsoft Certified Technology Specialist, specialised in SharePoint 2007/2010, with more than 10 years of experience in analysis, design and development complex Internet and Intranet portals using the latest Microsoft tools and practices, such as C# .NET 4.0, Silverlight and Windows Azure platform. Besides professional work, I write articles for Egghadcafe.com and publish open source projects on CodePlex.

View Alon Havivi's professional profile on LinkedIn. View Alon Havivi's projects on CodePlex. View Alon Havivi's articels on Eggheadcafe. Follow Alon Havivi on Twitter Contact Alon Havivi via E-mail Connect with Alon Havivi via Facebook View Alon Havivi's Blog Subscribe to Alon Havivi RSS Feed

Related Projects:

Last edited Jan 24, 2011 at 4:52 PM by havivi, version 15