by Andreas

Sharepoint trick – when a webpart causes a Server Error


This is a useful trick when one of your custom webparts causes the page to fail and gives you the Yellow Screen of Death. By just adding a query string parameter you’ll get access to the “maintenance page”, where you can delete or reset the faulty webpart.

Add “?contents=1” behind the url (giving you something similar to this: http://server/sites/DemoNet/SitePages/WebParts.aspx?contents=1 )


Now go back to Visual Studio, quietly admit to yourself that your error handling sucks and make sure you fix it!