Archive for January 2012
Placeholder Image Generator from lorempixel
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!
SharePoint 2007 “An unexpected error has occurred” After Content Database Restore
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.