PerfomancePoint Dashboard Designer “Code blocks are not allowed in this file”


image

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.

About Geoff Varosky
Geoff Varosky is the Director of Development and Evangelism for Jornata (www.jornata.com), a Microsoft Gold Partner focusing on SharePoint solutions based out of Boston, MA. He has been architecting and developing web based applications for over 13 years, and has been working with SharePoint for the past 6 years. Geoff is an active member of the SharePoint community, Co-Founder and Co-Organizer of the Boston Area SharePoint Users Group (www.bostonsharepointug.org), co-organizer for SharePoint Saturday Boston (www.sharepointsaturday.org/boston) and speaks regularly at SharePoint events and user groups.

7 Responses to PerfomancePoint Dashboard Designer “Code blocks are not allowed in this file”

  1. Pingback: Tweets that mention PerfomancePoint Dashboard Designer “Code blocks are not allowed in this file” « Geoff Varosky's Blog -- Topsy.com

  2. teslatradeup says:

    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.

  3. teslatradeup says:

    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 )

  4. 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.

  5. Steve C says:

    Egads. Any way this could be effectively controlled through Central Administration -> Trusted Content Locations (http://technet.microsoft.com/en-us/library/ee836148.aspx) ?

  6. Pingback: Performance Point Dasboard Designer – Hata: “Code blocks are not allowed..” « beytan

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 45 other followers