Advertisements

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.

Advertisements

About Geoff Varosky
Geoff Varosky is a Senior Architect for BlueMetal Architects, based out of Watertown, MA. He has been architecting and developing web based applications his entire career, and has been working with SharePoint for the past 13 years. Geoff is an active member of the SharePoint community, Co-Founder and Co-Organizer of the Boston Area SharePoint Users Group, co-founder for the Boston Office 365 Users Group, co-organizer for SharePoint Saturday Boston and speaks regularly at SharePoint events and user groups.

13 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

  7. hxy0135 says:

    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?

  8. hxy0135 says:

    I figured it. Thank you for your post.

  9. Fran says:

    I have set this in my web config file but still am getting the error!

  10. Fran says:

    Used this string:

    • What string?

  11. N8ivWarrior says:

    Thanks Geoff! Used this today. See you in November!

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: