While creating a new BI Center at my company we had no trouble building the site in dev, creating dashboards, Excel reports, etc. Everything worked fine. We were rolling the solution out to production (keeping in mind, our dev and prod installations of SharePoint 2010 were created identically), but when we clicked on “Start Using PerformancePoint Services”, we were met with the error page and the message
“An error occurred during the processing of /<BI Center>/Pages/ppssample.aspx. Code blocks are not allowed in this file.”
I started researching what could cause this, and saw numerous posts talking about modifying web.config. Tried them all and got nowhere. On top of that, I have a real hard time with just modifying web.config on a production system to fix a problem on a single site. Fortunately, thanks to the @Statera contractors assisting us with the installation, we came across this TechNet article explaining how to fix this that made a LOT more sense.
var siteCollection = "<%=SPHttpUtility.UrlPathEncode(siteCol.Value,false,true)%>";
var siteLocation = "<%=SPHttpUtility.UrlPathEncode(site.Value,false,true)%>";
And change them to this:
var siteCollection = "/";
var siteLocation = "/
So if your bi center is located at http://server/sites/site/bicenter, var siteLocation should look like this:
var siteLocation = "/site/bicenter/";
Save the file and publish a Major version. You should now be able to click on “Start Using PerformancePoint Services” and run Dashboard Designer.
Hope this helps!