PerfomancePoint Dashboard Designer “Code blocks are not allowed in this file”
February 21, 2011 13 Comments
If you are configuring PerformancePoint in SharePoint 2010, and you are attempting to launch the Dashboard Designer ClickOnce application from the Business Intelligence Center site you have created, you may encounter this error. Some books and blog posts on the subject of configuring and running PerformancePoint services do not seem to touch on this – SharePoint by default, does not allow in-page code.
To get around this, you will need to modify the web.config file for the web application in which PerformancePoint lives, by inserting the following code in the <SharePoint><SafeControls><PageParserPaths> section as shown below.
<SharePoint> <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"> <PageParserPaths> <PageParserPath VirtualPath="/BICenter/Pages/ppssample.aspx" CompilationMode="Always" AllowServerSideScript="true" /> </PageParserPaths> </SafeMode> </SharePoint>
Where the VirtualPath listed above is the relative URL to the ppsample.aspx page within your BI Center.
Pingback: Tweets that mention PerfomancePoint Dashboard Designer “Code blocks are not allowed in this file” « Geoff Varosky's Blog -- Topsy.com
Hi Geoff,
Do you know if there is a way to fix this across Sharepoint instead of a page-by-page solution?
My client wants to add multiple Performance Point dashboards – and doesn’t want to call me to add this code to the web.config file each time.
Thanks!
Martin
Martin – Yes, you should be able to do this pretty easily by using the following:
using the wildcard will allow for any page within the pages library. With IncludeSubFolders=”true”, this will also allow for any ASPX pages within the pages library which might be in a folder.
Wildcard as an asterisk (*) right?
Do you know if there are any security implications in enabling this for all pages? – Sorry for all the questions. :o)
Yes… the wildcard is an asterisk. Yes, there are security concerns, with enabling inline code, someone can edit a page, and run any code they’d like, even with RunWithElevatedPrivileges, so they can pretty much do anything to the environment. As long as the folks with write access to that pages library are trusted, you should be OK.
Egads. Any way this could be effectively controlled through Central Administration -> Trusted Content Locations (http://technet.microsoft.com/en-us/library/ee836148.aspx) ?
Pingback: Performance Point Dasboard Designer – Hata: “Code blocks are not allowed..” « beytan
Hi,
I changed web.config under C:\Program Files\Microsoft Office Servers\14.0\WebServices\PpsMonitoringServer. when I save it, I got “access Denied” error, even I logged in as a local administrator.
Is it right file to change and How can I get around it?
I figured it. Thank you for your post.
I have set this in my web config file but still am getting the error!
Used this string:
What string?
Thanks Geoff! Used this today. See you in November!