When I save page with custom XsltListViewWebPart and then try it anonymously, web part displaying text:
"Access denied. You do not have permission to perform this action or access this resource".
When I try to view it authenticated - everything is ok. And after that if even I try it anonymously - ok.
Problem appears only after page saving before getting it authorized manner.
It's not big trouble for me, but maybe someone know why this happening and how to solve this?
Do you mean that you add a new XSLlIstViewWebPart on a page to use a custom XSL file ?In this way the anonymous users cannot view the page then?
If the answer is yes ,then this issue is reproducible .There is a workaround :
1. Add the Content Query Web part to the page (Publishing Site).
2. Map the List to the Content Query Web part.
3. On the Presentation Section of Content Query tool part. Select the item style (custom item template added to the /Style%20Library/XSL%20Style%20Sheets/ItemStyle.xsl) file using SPD.
4. Save the Page changes & publish it.
For more information ,please refer to this site:
Access denied for anonymous users on list webparts : http://social.technet.microsoft.com/Forums/da-DK/sharepoint2010customization/thread/3d95f279-91c0-47be-b7b9-3a0f83ff4f8c
I think the trick is to use xsl:import in the file that is specified in wp properties to reference another xsl which contains your view styles. Requires using 2 xsl files but works around anonymous cache bug.