Error : “An error occurred during the processing of /OSSSearchResults.aspx. Code blocks are not allowed in this file.”
Cause : By default the inline server side codeblocks are disabled and we need to enable it in web.config
Resoultion : we need to enable code block in web.config.
Cause : By default the inline server side codeblocks are disabled and we need to enable it in web.config
Resoultion : we need to enable code block in web.config.
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
<PageParserPaths>
<PageParserPath VirtualPath="/osssearchresults.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
</SafeMode>
Source : http://blog.pixelmill.com/1037/sharepoint-2010-allow-server-side-code-inline-code-blocks/
<PageParserPaths>
<PageParserPath VirtualPath="/osssearchresults.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
</SafeMode>
Source : http://blog.pixelmill.com/1037/sharepoint-2010-allow-server-side-code-inline-code-blocks/
No comments:
Post a Comment