web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

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

(0) ShareShare
ReportReport
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?

I have the same question (0)
  • Anthony Dong Profile Picture
    on at

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

  • Shalabh Gupta Profile Picture
    91 on at

    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? 

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at

    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

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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.

  • Shalabh Gupta Profile Picture
    91 on at

    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.

  • Shalabh Gupta Profile Picture
    91 on at

    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?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans