Tag Archives: SP2010

Know REST For the Query – SharePoint Saturday Phoenix 2014

Thank you for all who attended my session, below is the video. Big thanks to Becky Bohanon for enhancing the audio!

The slide deck is available here: Slide Deck

The JavaScript file that was used to do all of the REST calls is available here: demo.js

Eric

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 35 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a Sr .Net/SharePoint Developer for General Motors, and also as a consultant.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube

Filenames and WebDAV in SharePoint 2010

This is more of a reminder to myself than anything, and you may already be aware of this, but in case this issue is new here’s what helped me:

While taking our enterprise in a paperless direction, one department was having trouble opening a document library using the “Open in Windows Explorer” function every time they saved a certain file to it. For the longest time I couldn’t find any pattern to the behavior, and assumed it was something to do with the file. Turns out it was the filename itself. In this case, they were using the word “Service” in the filename, namely “<dept name> Service Request.pdf”. The word “Service” isolated in the filename was screwing up WebDAV as it was trying to open the document library in a Windows Explorer view. Once they either removed the word “Service”, altered it (Svc, Serv., etc) or ran the whole thing together (deptservicerequest.pdf) the issue was resolved.

Never would have assumed “Service” is in a round-about way a protected word, like using the word “table” in a SQL query, but apparently it is! Would love to learn more about WebDAV to better understand why this is so, and if there are any other words that should be avoided.

Hope this helps!

Eric

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 35 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a Sr .Net/SharePoint Developer for General Motors, and also as a consultant.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube

PerformancePoint error: “Code blocks are not allowed in this file.”

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.

Basically, you need to open the affected BI site in SharePoint Designer.  Click All Files under Navigation on the left, then in the pane to the right open the Pages folder and click on ppssample.aspx to open it.  When prompted to check out the file, check it out.  Locate the JavaScript function near the top called OpenDD() and edit the following two lines:

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!

Eric

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 35 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a Sr .Net/SharePoint Developer for General Motors, and also as a consultant.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube

Modify Title Logo link on master page

    So, as I’m building out our company intranet in SharePoint 2010, I didn’t like the fact that when I was nested several pages deep in a particular site, when I clicked on the logo on the top left of the page it took me to the root of that particular site.  I figured it would take me to the “home” page, or the root site collection.  Turns out this is handled in the master page of that website.  Here’s how to change that:
  • In SharePoint Designer, open the website, then click on the Master Pages link in the Site Objects section on the left.
  • Locate the master page your site is using (in my case, it was v4.master) and click to open.
  • When the page opens, locate the Customization box and click “Edit file”
  • Scroll through the code until you see the first instance of the following element:
  • It’s about halfway down the page, in the HTML table cell with the CSS class of “s4-titlelogo”.  This is the element for the logo on the page, at the top left.  Normally, you click on that and it takes you to the main page of that particular site.  Well, if you want to go to the root of the site collection (or home page, or any page for that matter), just replace the ~site/ with the site of your choice!  Make sure it’s well-formed (http://server/site).
  • Save the file.  You may be prompted with a warning about deviating from the default template.  Acknowledge the warning and the changes will be instantaneous!

Hope this helps!

UPDATE: For SharePoint 2013, use the same behavior but locate the object inside of

Eric

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 35 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a Sr .Net/SharePoint Developer for General Motors, and also as a consultant.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube

_controltemplates/TaxonomyPicker.ascx failed in SP2010

Our SharePoint 2010 started crying late last Friday, of course right when I wanted to leave, and first thing this morning I took a look at the server and found the following errors:

Load control template file /_controltemplates/TaxonomyPicker.ascx failed…

Fortunately, I’m not the only one who seems to have had this problem pop out of the blue.  I found a solution fairly quickly here.  To summarize, here’s what you do:

On the server, navigate to C:program filescommon filesmicrosoft sharedweb server extensions14TEMPLATESCONTROLTEMPLATES and open TaxonomyPicker.ascx in notepad.  towards the top you will see the following line:

<%@ Control className="TaxonomyPickerControl" Language="C#" Inherits="Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker&#44;Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Change the &#44; to a comma (,), so now the element will look like this:

<%@ Control className="TaxonomyPickerControl" Language="C#" Inherits="Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker,Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Save the file.  No need to restart IIS or any web services, app pools, nothing.  Not sure why it did that, but it did, and this fixed it!

Hope this helps someone else!

UPDATE: If this doesn’t help, try renaming the file to TaxonomyPicker.ascx.broken.  Apparently the control isn’t even used and this will force the App Pool to ignore it when refreshing.

Eric

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 35 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a Sr .Net/SharePoint Developer for General Motors, and also as a consultant.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube