Home > SharePoint > Error opening a page in SharePoint Designer 2007

Error opening a page in SharePoint Designer 2007

Today, I’ve encountered the following error when trying to open default.aspx page in SharePoint Designer 2007.

soap:ServerServer was unable to process request. —> A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered as safe on this site. You may not be able to open this page in an HTML editor that is compatible with Microsoft Windows SharePoint Services, such as Microsoft Office SharePoint Designer. To fix this page, contact the site administrator to have the Web Part or Web Form Control configured as safe. You can also remove the Web Part or Web Form Control from the page by using the Web Parts Maintenance Page. If you have the necessary permissions, you can use this page to disable Web Parts temporarily or remove personal settings. For more information, contact your site administrator.

Here’s the solution that helped me to solve the issue. Original article is found here.

Under the account of a user that has rights (usually the admin account), go to the URL and add "contents=1" to it.  This will list all web parts that have been added at any particular point.

If you have a web part that you added at one point and deleted it through the URL, it still ‘exists’ and so if it wasn’t a safe part, or is no longer listed in the web.config as a safe part, it will be listed as an ‘Error’ web part.  Select it/them and delete them, and then you should be able to open the page in SharePoint Designer as expected.

For example, if you try to open the page like this: http://somehost/default.aspx?contents=1 or like this http://somehost/?contents=1 you will see the “Web Part Page Maintenance: default” and the list of currently loaded Web Parts. Check the list of Web Parts for an Error Web Part and delete it.

  1. June 9th, 2009 at 16:03 | #1

    I am pleased that you took time to post this article. After researching a similar error messages, attempting to open a default page. SharePoint recognized something on the page as ‘unsafe’ thus preventing the page to open. In a nut shell the solution was to deleted a unsafe ‘error web part’ on the page with the assistance of appending ?contents=1 to the url. I guess I got a lucky deleting the right web part. :)

  1. No trackbacks yet.

Spam Protection by WP-SpamFree