locked
Error when create a console application RRS feed

  • Question

  • Hi All,

    I have a bit problem when trying to create a console application to access my CRM environment, I got an error like on below:

    Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, 
    PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 
    Access is denied.":"Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, 
    PublicKeyToken=31bf3856ad364e35

    after find out to the internet, some people said this is caused by GAC, security, but till now I got stuck and don't know how to resolve it.

    please advise.

    thanks.


    • Edited by pntr Friday, August 29, 2014 4:54 AM
    Friday, August 29, 2014 4:51 AM

Answers

All replies

  • Hi Mate,

     This is a DLL from CRM SDK. Please add a reference to the DLL and see if it fixes your issue.

    Regards,

    Jithesh

    Friday, August 29, 2014 4:59 AM
  • yes I do.

    I already added the dll from SDK, but it still doesn't work.

    Friday, August 29, 2014 6:30 AM
  • Did you check if these assembly exists in GAC with same version, if not try to register these into GAC.

    Our Website| Our Blog | Follow US | My 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.

    • Marked as answer by pntr Wednesday, October 1, 2014 2:58 AM
    Friday, August 29, 2014 7:09 AM
    Moderator
  • Hello,

    are you trying to run the exe in debug mode or are you trying to double click on an exe?.

    regards,Jithesh

    Friday, August 29, 2014 9:16 AM