Tools & tricks for troubleshooting SharePoint 2010 Part I: Unexpected Errors

By bhoeijmakers at March 28, 2012 09:46
Filed Under: SharePoint 2010

A good part of my time I’m working on troubleshooting issues with SharePoint 2010 farms. Usually this includes (but is not limited to) unexpected errors and performance problems. In this blogpost series I will describe some of the tools and tricks I use on a daily basis to pinpoint the source of problems.

 

- Tools & tricks for troubleshooting Part I: Unexpected Errors (You are reading it)

- Tools & tricks for troubleshooting Part II: Performance problems

- Tools & tricks for troubleshooting Part III: Maintanance

 

Unexpected errors

We all know them, right? “An unexpected error has occurred”.

 

image

 

Now what? To get a more descriptive message about what might be wrong, there are two approaches: More...

I’m speaking on the TechDays 2012 in The Hague

By bhoeijmakers at February 14, 2012 21:24
Filed Under: .NET, SharePoint 2010

On thursday the 16th of february I’m speaking on the TechDays 2012 NL in The Hague. I’m doing a level 200 session called SharePoint 2010 for ASP.NET developers together with my collegue Donald Hessing. Hope to meet you there!

Implementing logging in SharePoint 2010 using the SharePoint Guidance library

By bhoeijmakers at December 04, 2011 08:18
Filed Under: .NET, SharePoint 2010

In this post I will talk about a way to implement a logging component in SharePoint 2010 that uses the Microsoft SharePoint Guidance Patterns and Practices library. The SharePoint Guidance library contains a lot of cool and very useful components. I will only focus on the logging component in this post and how to use it in practice to create your own logging component. In this post I am creating a Farm Solution. In a later post I will talk about how to do this in a sandboxed solution.

 

If you don’t want to read the theory and go straight to downloading the example solution, click here

 

More...

Speaking on SharePoint Connections in Amsterdam

By bhoeijmakers at November 18, 2011 09:18
Filed Under: Sharepoint 2010

I’m happy to announce that I will be doing a session on SharePoint Connections 2011 in Amsterdam next Wednesday the 23th of November together with my collegae Donald Hessing. We will be doing the same session that we did on the European SharePoint Conference in Berlin last October.

 

i'm-a-speaker

Taxonomy fields revisited: Getting the Term Store programmatically

By bhoeijmakers at November 04, 2011 16:12
Filed Under: .NET, SharePoint 2010

In my series of posts about using Taxonomy Fields in SharePoint 2010 I am using code to do all kinds of stuff with Taxonomy Fields and Terms from code. Because I can´t leave those fascinating Taxonomy Fields for what they are, here is yet another post about this subject Smile 

 

This is a follow up on my previous posts on this subject:

Using Taxonomy Fields in SharePoint 2010 - Part I

Using Taxonomy Fields in SharePoint 2010 - Part II

Using Taxonomy Fields in SharePoint 2010 - Part III

 

This post is meant for those of you that have read the previous posts (or attended one of my sessions on Managed Metadata Fields), and want to know more in order to write better code.

 

To get the Term Store from code I was using the following code in the Using Taxonomy Fields in SharePoint 2010 series of posts:

 

// set up the field for my termstore
TaxonomySession session = new TaxonomySession(site);
 
if (session.TermStores.Count > 0)
{
      // get termstore
      TermStore ts = session.TermStores[0];
 
      // more code here...
}

 

This is not very robust code and should not be used in a production environment. The code above gets the first (default) Term Store from the Taxonomy Session. But what if there are multiple Term Stores associated with the Web Application? In this post I will show you how to get the Term Store programmatically the right way More...

Slide deck for my presentation on the European SharePoint Conference now available!

By bhoeijmakers at October 25, 2011 07:18
Filed Under: SharePoint 2010

I had a great time at the European SharePoint Conference in Berlin last week. Saw some great sessions and met a lot of cool new people. Thanks to everyone that attended our Managed Metadata black belt presentation. The slides are now available for download here

I’m speaking on the European SharePoint Conference in Berlin

By bhoeijmakers at September 13, 2011 08:07
Filed Under: SharePoint 2010

I’m very happy to announce that I will be giving a presentation on the European SharePoint Conference in Berlin. I will be doing a session on Managed Metadata together with my collegae Donald Hessing. Here is a description of the session:

 

The use of Managed Meta Data in SharePoint seems to be trivial. You link the managed meta data service application to the proxy group that you want to use in the webapplication, you add a managed meta data field to the list and link that to the termset you want to use. No magic here! But once we dive into the more advanced scenarios we will see that the use, development and management has a lot of dark sides. What is actually stored in a taxonomy field, do I need the note field, where is the TaxonomyHiddenList good for, can I use managed meta data in the sandbox, how do I use the taxonomy field with search, are there any restrictions from an architectural point of view?

The session will be on Thursday the 20th of October at 11:15.

 

Hope to meet you there!

Using custom CAS policy files in SharePoint 2010

By bhoeijmakers at September 04, 2011 12:42
Filed Under: SharePoint 2010

The other day I had to migrate a Microsoft Office SharePoint Server 2007 application to SharePoint 2010. This very simple database application uses a generated datalayer. This means, in this particular case, that the datalayer components of the application are in seperate DLL’s. I wanted to deploy these DLL’s to the BIN folder of the webapplication instead of to the Global Assembly Cache. This way I don’t need to put third party code in the GAC, and I have more control over what the code is allowed and not allowed to do. More...

How to fix renamed page-layout features in SharePoint 2010 or How we Set the Value of vti_setuppath and Lived to Tell the Tale

By bhoeijmakers at June 21, 2011 09:50
Filed Under: SharePoint 2010

Last week me and my colleague had to fix a nasty problem. In one of our projects someone renamed the feature containing our pagelayouts in Visual Studio. Since the project was already running in a production environment, this caused a “File Not Found” error on all the pages using one of the page layouts in the renamed feature. More...

Speaking on SharePoint Saturday Holland

By bhoeijmakers at March 24, 2011 17:32
Filed Under: SharePoint 2010

Next Saturday the 26th of march I will be doing a session on SharePoint Saturday together with Donald Hessing about using Managed Metadata in SharePoint 2010. Here is a description (in Dutch) of our session:

 

Het gebruik van Managed Meta data in SharePoint lijkt in eerste instantie erg triviaal. Je koppelt de managed meta data service application aan de proxy group die je wilt gebruiken in de webapplication, je voegt een managed meta data veld toe aan de lijst en geeft aan welke termset je daarbij wilt gebruiken. No magic here! Maar zodra we in de meer advanced scenario’s duiken zullen we zien dat het gebruik, programmering en beheer ervan nogal wat duistere kanten heeft. Wat wordt nu eigenlijk opgeslagen in een taxonomy field, heb ik nu wel of niet het notefield nodig, waar dient de TaxonomyHiddenList voor, kan ik managed meta data ook in de sandbox gebruiken, hoe gebruik ik het taxonomy field in combinatie met search, hoe zet ik eigenlijk de default value van een taxonomy field en zijn er vanuit architectuur oogpunt nog beperkingen? Kortom…”We will fight against the black magic of SharePoint and will show and explain the code to do it yourself!”

 

Lots of other great sessions too, hope to see you there!

About the author

Bart-Jan Hoeijmakers is Lead SharePoint Developer at VX Company. Since 2006 he is the driving force behind the development of several enterprise SharePoint projects within VX Company. He is a hardcore developer in both SharePoint and ASP.NET and loves to dive into the dark sides of SharePoint development.

Month List