Saturday, May 12, 2012

Error - Code blocks are not allowed in this file

Today one of my user opened a Ticket wherein he Tried saving the word Document and Got the Error

"An error occurred during the processing of /site/SharedDocuments/Forms/AllItems.aspx. Code blocks are not allowed in this file"

This Happened Even when Designer was Blocked on the Site .

I Enabled Designer on the site as i suspected the issue to be With Allitems.aspx

I was right when i opened the site in Designer i Found a Exclamation mark besides Allitems.aspx

which means the page was customised even though it was not .

I had already checked In view all site contents that all the data was intact which means it has to be the page view

Right Clicked on allitems.aspx and clicked reset to site definition
it created a copy of the old allitems.aspx and replaced it with a new one which was without any customisation a normal one .

Now we were able to browse the Document Library without any issues .

No comments:

Post a Comment

Users cannot see the checked out files in the folder/ library

I Came across a Issue today wherein the user opened a ticket for the below issue Issue : Users cannot see the checked out files in the fo...