It’s really strange that Content Query Web Part for document library doesn’t work for anonymous access.
“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.”
It looks fine, when user logged into the site.
When accessing the page as anonymous user gives this error.
When I look at the logs for the correlation token, it throws exception on “Object reference not set to an instance of the object” (It’s trying to get the USER ID)
We have open support ticket with Microsoft regarding this issue.
Hello
Have you found a solution here odnertussen?