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
- Open the page in edit mode
- Click on the drop down arrow for the web part, and select export
- Save to any location (my desktop, my documents, etc)
- Open the file in notepad
- Find the line that has “CommonViewFields”
- Modify that line as follows (this file is case-sensitive!):
<property name=”CommonViewFields” type=”string” >OnClickForWebRendering</property>
- Back on the page, click on “add a web part”
- 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.
- Click add a web part again, and the web part that was added should appear in the “imported web parts” section.
- Delete the original web part
- Save, close, and check in the page.