SharePointage

Developing with SharePoint

Archive for January 2012

Placeholder Image Generator from lorempixel

leave a comment »

 

This randomly generated image brought to by lorempixel.com:

lorempixel is an elegant tool for generating random placeholder images. The ‘api’ is embedded in the url path and allows you to dictate the size, category and text of the image. Brilliant!

Written by markm247

January 30, 2012 at 5:38 pm

Posted in Uncategorized

SharePoint 2007 “An unexpected error has occurred” After Content Database Restore

leave a comment »

If you experience the generic “An unexpected error has occurred” message after a content database restore (or any reason really), the first step in troubleshooting is to turn off custom error handling and allow SharePoint to display the stack trace. Here are the steps:

1) Navigate to the web application’s web.config file

2) Find the SafeMode setting:

<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

and change the ‘CallStack’ and ‘AllowPageLevelTrace’ attributes from false to true:

<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="true">

3) Find the CustomErrors setting:

   <customErrors mode="On" />

and set mode=”Off”:

   <customErrors mode="Off" />

Now reloading the page will provide stacktrace information for troubleshooting.

Written by markm247

January 16, 2012 at 10:15 pm

Posted in Uncategorized

Follow

Get every new post delivered to your Inbox.