access denied in custom xsl when request page anonymously after page saving RRS feed

  • Question

  • 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?

    Sunday, October 30, 2011 11:48 AM

All replies

  • Hi ,


    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



    Entan Ming

    Tuesday, November 1, 2011 2:41 AM
  • Now I use pretty easy workaround: after editing xsl I open it in browser authorised.

    After that anonymous users see web parts ok.

    Tuesday, November 1, 2011 11:10 AM
  • 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.


    • Proposed as answer by joshbooker Wednesday, June 5, 2013 2:21 PM
    • Unproposed as answer by Hemendra Agrawal Thursday, July 25, 2013 5:12 AM
    • Proposed as answer by joshbooker Friday, September 20, 2013 6:49 PM
    Wednesday, June 5, 2013 2:21 PM