Code blocks are not allowed in this file error in SharePoint 2010

By |2017-12-11T16:04:59+00:00April 30th, 2012|Sharepoint|0 Comments

We came across the below issue after a using uploaded some files to a SharePoint site. When navigating to the affected site users would receive the following error:

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


The AllItems.aspx had become corrupt. To resolve this we replaced the Allitems.aspx file with one from a working site. To access the files, use the “Open with Explorer” option in SharePoint and navigate to the “Forms” folder.

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.