Description
When trying to access Winshuttle site user encounters the following error: -
An error occurred during the processing of/_catalog/masterpage/wsfoundation2013-leftnav.master .Code blocks are not allowed for this file.
Applies To
Foundation 11.x and 12 x
Cause
This is caused by a missing safe control entry in the web.config file, located at Inetpub\Wwwroot\WSS\VirtualDirectories\<port number of your web-application>
Solution
Before making any changes, please make a copy of the config file.
1. Logon to Sharepoint server on which Foundation site is running.
2. Go to Directory Inetpub\Wwwroot\WSS\VirtualDirectories\<port number of your web-application>
3. Take a backup f webconfig file.
4. Now search for Safemode MaxControls.
4 .Replace the following code block in the webconfig file .
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="250" AllowPageLevelTrace="false">
<PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths>
</SafeMode>
4. Please do not add the code at the end of the file; look for the current location of the same code in the file and then replace the code.
5.Do an IISReset on the servers
Comments
0 comments
Please sign in to leave a comment.