CRM 2011 – How to get SharePoint 2010 dll’s into the GAC

I had a problem today, the plugin I had developed used a SharePoint 2010 dll which I needed to use.  For those of you who know about plugin development you  know any dll’s you need to access need to be in the GAC (although I think there is a tool which can combine dll’s but I haven’t used that yet).  

The problem I had was when I tried to copy the two SharePoint 2010 dll’s in the GAC, I got a permissions problem.  I could have done this with the gacutil but I didn’t have visual studio installed on the server.

I then found there is a useful SharePoint client install which basically installs the two SharePoint dll’s into the GAC for you and saves you a lot of hassle.

You can get the EXE by clicking on the link below

SharePoint Foundation 2010 Client Object Model Redistributable

Brief Description

This is a redistributable package of the Microsoft Silverlight and Microsoft .NET managed client object models in Microsoft SharePoint Foundation 2010, intended for use by developers.

6 thoughts on “CRM 2011 – How to get SharePoint 2010 dll’s into the GAC

  1. antonio July 6, 2011 / 3:32 pm

    I downloaded and installed those DLLs in the GAC (I verified that they are in the GAC), but when I run a workflow that uses them, I still get the following error:

    Workflow paused due to error: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.SharePoint.Client, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.


    • Hosk July 6, 2011 / 4:12 pm

      have you tried restarting the IIS


      • Vel July 13, 2011 / 8:54 pm

        Is there any chance you can share the code or post links you used for your plugin? I am trying to find some code that would be good start for developing the CRM 2011 plugin that would retrieve/update file from/to SharePoint 2010.


      • Hosk July 13, 2011 / 8:58 pm

        I’m afraid I can’t share the code but I would suggest you work through the Sharepoint sample in the SDK which will set you on the right track and show you how to use the SharePoint SDK and the SharePoint site to create folders and copy files etc.


  2. Turks July 25, 2012 / 7:56 pm

    Hay, thank you man so much .. this is just the solution to the problem I’ve been trying to solve for hours.

    Keep up the good work.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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