2013-07-31

When we develop a web part, we definitely face errors, but this error may be prevent you from loading the page and all you can see is an error! Helpful I know!

Anyway the problem is want to remove the web part from the page, but we can’t even edit the page at all.

Solution:

Add to the URL this QueryString ?Contents=1

If this is your URL http://servername/pages/home.aspx then add to it the QueryString to be http://servername/pages/home.aspx?contents=1

You will then see the page as below: now you can close or delete the bad web part.I haven’t specified the SharePoint version is it works from SharePoint 2007 .. 2010 & 2013 but not sure about more previous versions but who still uses it anyway !

Hope that helps.

About the author 

Mai Omar Desouki

Mai Omar Desouki is a Sr. SharePoint Consultant at Vodafone Egypt & previously in Infusion Dubai. Mai is Certified MCT, MCP, MCTS, MCPD, MCITP. She had done several SharePoint sessions; lately in the SP24, SPSBoston, SPSGulf, SPSUtah and in the European SharePoint Conference in Copenhagen & Dubai SharePoint Saturdays.

She has been working with Microsoft Technology for 7 years, with the main focus on SharePoint.Her main SharePoint deployments have been for customers in Egypt & Middle East region. She also has done multiple migrations for enterprise customers from MOSS 2007 to SharePoint 2010 & from SharePoint 2010 to 2013. Mai is focused on helping customers get the most business value.​​​