locked
DCRM 2015 On-Premise - RegAsm - Error RA0000 - could not load file or assembly 'file "Microsoft.Xrm,Sdk.dll' or one of its dependencries RRS feed

  • Question

  • Hi All,

    Currently I working on CRUD operations for Dynamic CRM 2015 OnPremise from C# code. 

    I have installed VS 2013 with framework 4.5.2 also downloaded SDK for DCRM 2015 which contains 

    Microsoft.Xrm.Sdk.dll, Microsoft.Crm.Sdk.Proxy.dll, Microsoft.IdentityModel.dll (3 DLL's I need for CRUD operations). I have added these 3 DLL's in my project to perform operations along with a DLL which contains operation.

    When I execute a batch file (as "Run as Administrator") which registers the above mentioned 4 dll's, command prompt shows "RegAsm - Error RA0000 - could not load file or assembly 'file "Microsoft.Xrm,Sdk.dll' or one of its dependencries" error. I dont have any idea why it is showing this error. (got same error for remaining 3 Dll's)

    Do we need to register the mentioned Dll's with Net framework 4.5.2's regasm ? or Did I miss something ?

    Please advise the solution.

    Thanks,

    Sudarshan

    Friday, December 26, 2014 12:37 PM

All replies

  • Have you selected 4.5.2 framework version in your project (Note: you won't be able to select 4.5.2 version even if you have installed it, you need to also install Deverlopers pack).

    Microsoft Dynamics CRM Training|Our Blog | Follow US | Our Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Friday, December 26, 2014 12:52 PM
    Moderator
  • Hi Mahender,

    If we won't select target framework 4.5.2, it shows s lot of errors and warnings. So I installed vs 2013 with 4.5.2 (with developers pack).

    It's showing an error while registering dlls. For register, I have created a .bat file (which contains 3 dlls i.e. Microsoft.Xrm.Sdk.dll, Microsoft.Crm.Sdk.Proxy.dll, Microsoft.IdentityModel.dl and a custom dll which contains CRUD operations  which were compiled in framework 4.5.2) and I executed it via "Run as Administritator", then it shows "DCRM 2015 On -Premise - RegAsm - Error RA0000 - could not load file or assembky 'file "Microsoft.Xrm.Sdk.dll"or one of its dependencies'.

    Any problem with regasm.exe or app.config file ? Do we need to use regasm.exe of newly installed framework to register these Dlls ?

    Thanks,

    Sudarshan

    • Edited by Sud Gujar Saturday, December 27, 2014 12:15 PM
    Saturday, December 27, 2014 12:10 PM