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.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b4579045-b183-4ed4-bf61-dc2f0deabe47

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=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.

    Like

    • Hosk July 6, 2011 / 4:12 pm

      have you tried restarting the IIS

      Like

      • Vel July 13, 2011 / 8:54 pm

        Hi
        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.
        Thanks!

        Like

      • 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.

        Like

  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.

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.