Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

Posted on by 91

I was trying to find out if "Microsoft.CrmSdk.XrmTooling.CoreAssembly" nuget package works as a partial trust or a full trust assembly?

The reason for asking this question is because when trying to ilmerge this assembly with my plugin dll file, the plugin-registration tool is throwing an error as follows:

 <Message>Unable to load plug-in assembly.</Message>

If this is Partial Trust assembly, is there a way I can connect to another CRM instance from within a plugin?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hello,

    I played with XrmTooling and you would not be able to use it from plugins that are sandboxed.

    If you want to connect to another instance you should use WebApi instead - docs.microsoft.com/.../web-api-samples-csharp

  • Shalabh Gupta Profile Picture
    Shalabh Gupta 91 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi Bipin,

    I want to connect to another CRM instance, hence using Tooling namespace. If you have a working code to connect to another CRM instance from within your plugin, can you please share your code with us?

  • Shalabh Gupta Profile Picture
    Shalabh Gupta 91 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi Miguel,

    I thought that was selected by-default, at least my ILMerge build was successful so I assumed so, I can try that for sure to see if that might be the reason.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi,

    All operations/methods avaiable in Microsoft.CrmSdk.XrmTooling.CoreAssembly can be used using context iorganization service.

    Why is that you need this dll to be merged in plugin?

    If found helpful, Please mark my answer verified.

  • Suggested answer
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi Shalabh,

    Why are you using ILMerge for those dll's? Can you set "copy local to false" inside visual studio for those dll'sand try again ?

    pastedimage1593769493356v1.png

  • Shalabh Gupta Profile Picture
    Shalabh Gupta 91 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Thanks for your reply.. 

    Tried with multiple nuget package versions, same issue.

    Also looked at your link, it doesn't mention about this tooling assembly if it's an issue with partial trust. Do you have any working plugin which uses this tooling assembly? 

  • Anthony Dong Profile Picture
    Anthony Dong on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    hi ,

    same issue talked here,, hope it's useful for you social.microsoft.com/.../unable-to-load-plugin-assembly-error-with-crm-online

    Also, did you download correct version www.nuget.org/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans