Wednesday 18 January 2012

How to reset the "AllItems.aspx" page in your Shared Documents Library


I was face to a blank page while accessing Shared Documents Library.

First, checking with SharePoint Designer 2007, I saw that the AllItems.aspx page's size was more than 13000Kb (instead of 1Kb).

Trying to open the .aspx page gave me really special caracters, as if you try to open a excel file with your notepad.
By the way, the end user explained that he was saving his excel file into the SharePoint Site's Document Library.

Don't know why, via excel, it overwrite each time the wrong file : the AllItems.aspx


The solution that I've applied is describe herunder :

1         Into the URL, add at the end "?contents=1" :
         …./sitename/Shared%20Documents/Forms/AllItems.aspx?contents=1
2         Check the "Shared Documents" entry
3         Click "Reset"
4         Test
If not ok (was my case), the go to next step
5         Open SharePoint Designer 2007, and open your faulty site
6         Browse through the structure and expand the tree view "Shared Documents => Forms"
7         Right-click on the AllItems.aspx file, and select : "Reset to Site Definition"


That's all folks 


3 comments:

  1. Thank you, but I tried all above and this;
    http://social.technet.microsoft.com/Forums/en/sharepointgeneral/thread/a18356ec-6168-4a56-8200-389e3563e6e3

    but nothing works. I have to make a new library and move all items over... I guess

    ReplyDelete
  2. On step 6 the right menu options I have are:

    Check out
    Open
    Edit File in Advanced Mode
    Open with...
    Set as Default Master Page(grayed out)
    New From Existing Page
    Preview in Browser
    Preview in Multiple Browsers
    Cut
    Copy
    Paste(grayed out)
    Set as Home Page
    Rename
    Delete
    Properties... (does not give any chane options other than rename)

    so there is no option "Reset to Site Definition"...

    ReplyDelete
  3. Hi aquaoasen,
    What is the version of your SharePoint Farm?

    This post is refering to SharePoint 2007.


    nb: sorry for my really late reply....

    ReplyDelete