Tuesday, June 17, 2008

Data View bug on Anonymous Pages

I spent two days trying to fix this problem so I thought I would send it along in case any of you run into it.

I noticed that I had a page on a publishing site that worked fine when logged in but one of the three data views on the page gave the following error when I viewed the page anonymously.

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

For some reason the data view web part didn't put a "WebURL" select parameter in "DataSources" for this one control. I not sure why this only affected anonymous users. When I added this parameter with a value of {sitecollectionroot} everything worked fine.

No comments: