locked
Help with error code.. RRS feed

  • Question

  • Hi,

    I 'm getting this Error below while I was trying to run my plugin could anybody help me pls. Thanks in advance.

    Error 2 The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference? C:\CRM2011Kit\Labs\Plugins\Sources\Exercise 1\begin\C#\Plugins\BMIMeasurement.cs 42 17 FitnessCenterPlugins_Exercise1

    Here are all the reference:

    using

    System;


    using

    System.ServiceModel;


    using

    Microsoft.Xrm.sdk;


    using

    Microsoft.Xrm.Sdk.Query;


    using

    Microsoft.Xrm.Sdk.IPluginExecutionContext;


    using

    Microsoft.Xrm.Sdk.Entity;


    using

    Microsoft.Xrm.sdk.IPlugin;


    using

    Microsoft.Xrm.Sdk.OrganizationServiceFault;


    using

    Microsoft.Xrm.Sdk.InvalidPluginExecutionException;


    using

    Microsoft.Xrm.Sdk.InvalidPluginExecutionException;


    using

    Microsoft.Xrm.Sdk.IorganizationService;

    Wednesday, May 23, 2012 4:30 AM

All replies

  • HI lekelee,

                    You will need to update the Microsoft.Xrm.Sdk reference.

    If you see the exclamation mark as follows

    Right click on References and browse the Microsoft.Xrm.Sdk that is inside the sdk\bin folder as follows

    Click ok and build the project again.

    If you don’t have the CRM 2011 SDK  you can download it from this link http://www.microsoft.com/en-us/download/details.aspx?id=24004


    Regards,
    Damian Sinay

    Wednesday, May 23, 2012 5:31 AM