Skip to content

PerformancePoint Link Code Block Error in Business Intelligence Center in SharePoint 2010

by on July 10, 2012

Error:

An error occurred during the processing of /BICenter/Pages/ppssample.aspx. Code blocks are not allowed in this file.

image

Error Logs:

System.Web.HttpException: Code blocks are not allowed in this file.    at System.Web.UI.TemplateParser.ProcessError(String message)     at System.Web.UI.TemplateParser.EnsureCodeAllowed()     at System.Web.UI.TemplateParser.ProcessCodeBlock(Match match, CodeBlockType blockType, String text)     at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)     at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)   {GUID}

Solution:

<PageParserPaths>
    <!–added emerson bruce, 7/10/2012 performance point code blocks error–>
    <PageParserPath VirtualPath="/BICenter/Pages/ppssample.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>

NOTE: You may need to do an IISReset, but I did not.

Caveat:

Not really sure why this is necessary, but it is limited to this specific page, so should be of minimum impact.

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: