Anonymous SharePoint 2010 Sites and the CQWP

When a Content Query Web Part is placed on a page in an anonymous site, it generates the following error:

“Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.”

Waldek Mastykarz has solved this problem. See his explanation here:

If you need step by step instructions to get it to work, see below:

Procedure for allowing anonymous access to CQWP


  1. Open the page in edit mode
  2. Click on the drop down arrow for the web part, and select export
  3. Save to any location (my desktop, my documents, etc)
  4. Open the file in notepad
  5. Find the line that has “CommonViewFields”

  1. Modify that line as follows (this file is case-sensitive!):

<property name=”CommonViewFields” type=”string” >OnClickForWebRendering</property>

  1. Back on the page, click on “add a web part”
  2. Below the list of categories of web parts, click on upload a web part, and browse to and select the webpart file you modified. Click upload.
  3. Click add a web part again, and the web part that was added should appear in the “imported web parts” section.
  4. Delete the original web part
  5. Save, close, and check in the page.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s