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 CRM (Archived)

.Net framework version problem using Plugin Registration tool

(0) ShareShare
ReportReport
Posted on by 241

We are using CRM 365 on-prem version 9.

I created a workflow project, added reference to Microsoft.crm.sdk.proxy, Microsoft.xrm.sdk etc. They are all version 9.0.0.0. So my project target framework version has to be .NET Framework 4.6.2.

Then I installed plugin registration tool 9.0. When I tried to register the workflow, I got:

This plugin assembly uses version 4.6.2 of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.5.2 of  the .Net Framework for plugin assemblies. Rebuild this assembly using version 4.5.2 and try again.

Now I am confused on what is the problem. Am I using the wrong version of dlls or CRM365 V9 on-Premise is not using Framework 4.6.2? On the server, I do see the installed Framework version is 4.6.1. What version of Microsoft.crm.sdk.proxy, Microsoft.xrm.sdk etc I should use?

Thanks

Holly Li

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    Yes there seems to be a version mismatch. You do not have to manually create workflow project or add DLLs. You can use the following developer toolkit

    Could you download this Visual Studio Extension and install it.  I would recommend VS2015 but you can use it with VS2012 or 2013.

    [View:https://marketplace.visualstudio.com/items?itemName=DynamicsCRMPG.MicrosoftDynamicsCRMDeveloperToolkit:750:50]

    Once you installed, you will get the following project templates options

    ScreenClip-_5B00_429_5D00_.png

    Before you run, please make sure you set both of these paths

    ScreenClip-_5B00_429_5D00_.png

    Start with the New Solution template, enter the CRM login credentials and follow the steps.

    Once you created a workflow project, you can deploy directly from Visual Studio, you do not need to deploy via Plugin Reg Tool

    ScreenClip-_5B00_431_5D00_.png

  • Holly Li Profile Picture
    241 on at

    what is the target framework version this toolkit is using? I have other references to projects using 4.6.2. If I know what is the right version I should use I can using it consistently in all places.

  • Holly Li Profile Picture
    241 on at

    Looks like it uses SDK v8. Maybe on-premise version is still using SDK v8 instead of v9?

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    The toolkit will use whatever the latest version install on the machine and you can definitely re-target to any version.

    One of the main reasons I suggested the tool is you can do everything from Visual studio and everything can be source controlled easily including plugin steps, web resources, even customizations

  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you need to target 4.5.2 in your project and you must use these versions

    Microsoft.CrmSdk.CoreAssemblies (9.0.2.5 or below)

    Microsoft.CrmSdk.Workflow (9.0.2.5 or below)

    recent versions of these nuget packages require 4.6.2 and your onpremise version doesn't support yet 4.6.2 (for this you get the error message)

    developer toolkit has nothing to do with this

  • Holly Li Profile Picture
    241 on at

    I switch to sdk 8.0.x and the workflow can be registered. If I create workflow using sdk 9.0, the server wont let the workflow to be registered. I think CRM 365 on-pre v9 is different from online v9. It didn't not support NET Framework 4.6.2

  • Suggested answer
    Pradip Raj Profile Picture
    327 on at

    I am using Visual studio 2019, latest CRM SDK from nuget and Plugin registration tool.

    Now .Net Framework 4.6.2 is working with latest Dynamics 365 plugin assembly so it is working fine in plugin registration tool. I have search on it and finally resolved issue by setting target framework to 4.6.2 for plugin's solution. I am using latest CRM SDK assembly for plugin development and now it is working fine in plugin registration tool.

    .Net Framework above 4.6.2 will not work. Follow below Microsoft docs link for latest updates : 

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/write-plug-in

    Thank you,

    Pradip

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans