One of my user has opened a ticket with my team by mentioning “He is not able to browse his SharePoint Team Site and getting the below mentioned error message.
Problem Description: Not able to browse the SharePoint site
-Open your site, it’s quite obvious that you will get error message
Problem Description: Not able to browse the SharePoint site
Error Message: An error occurred during the processing of /site/My Documents/Forms/Alldocuments.aspx. Code blocks are not allowed in this file.
Resolution: Ulysses Ludwig’s Blog: - http://www.sharepointassist.com/2011/10/20/sharepoint-error-code-blocks-are-not-allowed-in-this-file/comment-page-1/#comment-2449
Here is my analysis regarding the same:
1) Check the site settings page is opening or not.
How to check that? - Site URL/_layouts/settings.aspx
2) If you are using any specialized master page in your environment then make sure it is properly selected under the master page galleries
How to check that? – Site actions-site settings-Under look and feel-master page galleries
3) Check the default.aspx page is existing or not
How to check that?
-Open your site, it’s quite obvious that you will get error message
-Be on that same page
-Control + O (from your keyboard)
-This will open the shared view of your site
-if you see the default.aspx page their then go ahead and take the backup of that page in the same location
-It wills create-default1.aspx—this is fine and we are on right track
-In this same shared location, you can see the created subsites i.e. the child sites which are created underneath
-Go to any of the subsite by means of shared drive and copy the default.aspx and paste it at the root location
-Try t browse the site and check the results
-Your site is up and running without any issuesJ
If you have any queries/questions then please let me know.
I would be more than HAPPY to help you as well as RESOLVES your issues, Thank youJ