I was trying to remove the site logo from our search results page and now the page won't load.
The first error I got was:
I searched for this and found where you can modify the web.config file to add a SafeControl for this and also add a section under PageParserPath for the searchresults.aspx file and allow server side scripts. This still gives me the following error message:
Here is what I added to the web.config file:
<PageParserPath VirtualPath="/_catalogs/masterpage/searchresults.aspx" CompilationMode="Always" AllowServerSideScript="true" />
I have also tried to reverted the code to remove the Site logo, tried restoring the searchresults.aspx to an earlier version, copied code from another site searchresults.aspx to this one and tried resetting the site definition. Although I wasn't able to reset just the searchresults.aspx page, it said it couldn't find it.
I'm kind of stuck now because I'm sure how to fix that Code Blocks error or how to even revert this back to it's original settings. I'm pretty sure the problem is in the searchresults.aspx file because that error wouldn't show up for regular users until I checked it out/in. After that it wouldn't show for anyone.
Any help would be greatly appreciated. Thanks in advance!