Modified the Master Page using SharePoint Designer added a Delegate control (which was missing in ghosted version of Master Page), saved and published it.
Holy Batman! got an error "Code blocks are not allowed in this file". Tried to add the below lines in web.config file
<pageparserpaths> <pageparserpath allowserversidescript="true" compilationmode="Always" includesubfolders="true" virtualpath="/_catalogs/masterpage/*"> </pageparserpath>
Holy Batman! got an error "Code blocks are not allowed in this file". Tried to add the below lines in web.config file
<pageparserpaths> <pageparserpath allowserversidescript="true" compilationmode="Always" includesubfolders="true" virtualpath="/_catalogs/masterpage/*"> </pageparserpath>
It didnt help either. Went back to books and found some creepy security measure Pages deployed through the UI or SharePoint Designer are considered customized and they are not allowed to have script blocks outside of web part zones. This is intentional design by Microsoft so that potentially untrusted users aren't able to run malicious code on your server. Pages deployed through features and WSPs are non-customized/ghosted/etc and are allowed to have script blocks anywhere on the page. Now I've modified the Master Page using feature and its working.
Cheers!!
