NOVA Code Camp 2013: Slides and Code

NOVACC 2013 TimFerro
Click the image for the PowerPoint.

Feature1.EventReceiver.cs
EventReceiver1.cs

Here is the link to a previously recorded version of this presentation: click me.

SharePoint 2010 Navigation Right Click Trick

My favorite SharePoint 2010 trick is how to deal with the out of the box functionality of the global and left navigation links. As many frustrated SharePoint 2010 users have experienced, the functionality shown in the below image is annoying and not easily fixable. The image on the left shows what happens when you right click on the global navigation and the image on the right shows what happens when you right click on the left navigation. Clearly this is not the expected menu which appears.

SharePoint 2010 Right Click

After much research I have come up with an easy trick to deal with this. I have also discovered the underlying issue and will post the details below in the hopes that a permanent fix can be found. If you take careful note of the position of the (enlarged) cursor, you’ll see that it is positioned to the left of the link I want to open. By clicking slightly to the left (or right) of the link that you want to open, you will get the correct link menu!

SharePoint 2010 Right Click Trick

 

So why does this issue happen and why does this solution work? I believe the root of the issue is a design conflict between SharePoint 2010 and Internet Explorer. Utilizing Internet Explorer’s “F12 Developer Tools”, you can see that the text of the link is contained by not one but two span tags. I think it has something to do with this but I am currently unable to confirm. If anyone has any insight into this issue, please let me know!

IE F12 Dev Tools

Tim Ferro

 

CapArea .NET 2013: Slides

CAPAREA2013_TimFerro

Click image for PowerPoint slides. Code coming soon…

SharePoint 2010 Issue With Trusted Identity Provider and People Picker

Scenario: You are running a SharePoint 2010 Farm patched to Service Pack 1 (SP1). You install a Trusted Identity Provider (TIP) but the Provider and Claims do not show up in the People Picker. Installation went fine and you can authenticate with a user who’s claims have been issued by the TIP; however, you cannot find users or claims via the People Picker. It is not known when this issue started showing up prior to SP1, because it appears to have worked after RTM; I can only confirm (from both talking to other SharePoint experts and repeated testing) it is definitely an SP1 issue.

Solution: Install a SharePoint 2010 Cumulative Update (CU) on top of SP1. In my specific instance SP1 was rolled into the SharePoint 2010 installation ISO but no CUs were installed after. I have solved my issue by installing either the June 2012 CU or the December 2012 CU. Detailed results below.

Thank you to Danny Jessee (@dannyjessee) for helping diagnose and solve this issue.

Image 1: Central Admin screen shot showing patch level. ​14.0.6029.1000 is Service Pack 1 (SP1). Note: It was bundled in the installation ISO and not all running services are shown.

Image 2: Web Application Authentication Selection page in Central Admin. No Trusted Identity Providers are currently defined.

Image 3: Created a custom Win Form to register my custom Security Token Service. Based on this Microsoft article and this blog from Liam Cleary.

Image 4: I ran through both previous articles and registered my STS using both Powershell and a custom Win Form. In both cases I still had to manually upload my certificate even though it should have been done automatically via code or script.

Image 5: Now my custom TIP is registered with SharePoint and I have selected it for my Claims Based Web Application.

Image 6: SharePoint 2010 Sign In Selection Options. I chose STSWebSiteForSharePoint.

Image 7: I am now authenticated via my custom TIP and STS.

Image 8: Finally the issue appears. Note the absence of users and claims from the TIP. Also note that the user which I am logged in as does not show in the results.

Image 9: I have now installed the SharePoint 2010 December 2012 Cumulative Update.

Image 10: SharePoint People Picker working correctly!

SUGDC 2013: Slides


Click image for PowerPoint slides. Code coming soon…

BAHSPUG 2013: Slides

SharePoint 2010 and Geolocation Data

SharePoint 2010 and Geolocation Data

Code and White Paper coming soon…