Sharepoint “Unknown error” after changing an aspx file in _layouts folder !

Posted: August 26, 2008 in Customization, Errors, SharePoint
Tags: , ,

Today I was working on our sharepoint based site and trying to customize it. I made a very big mistake when I opened “viewlsts.aspx” file in the layouts folder without doing any backup… made a little changes on it… and after that this page stop working 😦 !!!! every time I was clicking on “View all site content” , it navigated to the viewlsts page but it gives Unknown error !

I found that it’s because sharepoint designer ( in my case ) make automatic changes in these files when you change them ! I don’t know why . So the first and very important note is : Do not forget to first backup any file you want to change in sharepoint specially the files in layouts folders and it subfolders. ( you can make a copy of them )

I Solved it ! 🙂

After a little search and investigate I found that it has deleted the “~/ from the first of Register tags . So I change them all and it began working fine again 😉 ! maybe you prolem is the same ! So check it 😉

 

Advertisements
Comments
  1. Rachel says:

    Hi,

    I am trying to make the similar changes to the Upload.aspx page. I’ve made the copy of the original and renamed the copy to UploadX.aspx.

    Can you tell me where the “~/” should be inserted to get this work? I couldn’t find it in the Register tag.

    Thanks!

    Rachel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s