Hello,
We have a customized master page for our Sharepoint 2010 environment. It will be used by 100's of site collection in 1 web application. After we installed the webpage as Site feature, we were getting following error
"Code blocks are not allowed in this file"
We updated the pageparserpath parameter in web.config file and it worked fine in our Dev Sharepoint. But the same values are not working in Production. As we have hundreds of site collections, all of our custom master pages are stored at following location
/sites/*/_catalogs/masterpage/*
When we use following pageparserpath in Production, it doesn't work but it works in Dev.
<PageParserPath VirtualPath="/sites/*/_catalogs/masterpage/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true"/>
We are instead using
<PageParserPath VirtualPath="/sites/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
which is not a recommended way due to security issues.
Could anyone please recommend a better way or tell me whay the above virtualpath is not working in our Production ?
Thank in advance.
DG