SBX - Search With Button

SBX - Forum Post Title

Cannot update plugins in D365 v9 Online

Microsoft Dynamics CRM Forum

Xavier Villafuerte asked a question on 10 May 2018 6:57 AM
My Badges

Question Status

Suggested Answer

Hi, yesterday in one of our customers with v9 online, any attempt to update a plugin produces the following message:

Currently, Microsoft Dynamics 365 requires the .NET Framework version 4.6.2 for plug-in assemblies. Rebuild the assembly with the .NET Framework version 4.6.2 and try again.


I am pretty sure we are building the plug-ins using version 4.6.2 (with VS 2015), and we are using SDK libraries obtained from NuGet, but D365 still shows the same error. As usual, I would appreciate your guidance and advise.

Reply
Alex Shlega responded on 10 May 2018 7:02 AM
My Badges

Hi,

 could you post a screenshot of the target framework version for your plugin project?

msdn.microsoft.com/.../bb398202.aspx

Reply
Xavier Villafuerte responded on 10 May 2018 7:05 AM
My Badges

Thanks Alex. Please see the attached image:

Reply
Xavier Villafuerte responded on 10 May 2018 7:27 AM
My Badges

I just created a new solution using only version .net framework 4.6.2, recompile but I am getting the same error. Indeed, the full error is this:

This plug-in assembly uses the version obtenerUsuarioAsignacion, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 6a0cb0ef57054135 from the .NET Framework. Currently, Microsoft Dynamics 365 requires the .NET Framework version 4.6.2 for plug-in assemblies. Rebuild the assembly with the .NET Framework version 4.6.2 and try again.

Reply
Xavier Villafuerte responded on 10 May 2018 8:20 AM
My Badges

I found an answer that works for me in this link: community.dynamics.com/.../280013

I changed the .net framework target to 4.5.2 and keep the v9 SDK libraries and I was able to update the plugins. Not sure why this is working this way even though Microsoft requieres a higher .net framework version.

Reply
Shidin Haridas responded on 10 May 2018 8:23 AM
My Badges

When you get time, could you try the same in VS2017 targetting .NET 4.6.2 and v9 DLLs?

Reply
Andrew Gibson responded on 12 May 2018 7:28 PM
My Badges

I am getting this issue since last week. I am using VS2017 with all the updates, v9 SDKs and 4.6.2 .NET framework. Swopping to use 4.5.2 does not work either...

Reply
Vladimir Karukes responded on 13 May 2018 6:07 PM

I can confirm this issue is still present. My plugins are configured to use .NET 4.6.2. I cannot update any of them in Dynamics 365 Online. I've just updated my Dynamics Core dlls to 9.0.2.3 and nothing changed. I'm still unable to deploy updates to my plugins.

Reply
Vladimir Karukes responded on 13 May 2018 6:41 PM

Switching to 4.5.2 didn't work for me either. I actually went further and saved my steps in a solution file and deleted my plugin dll. I tried to use both 4.5.2. and 4.6.2 and neither one worked.

Reply
Andrew Gibson responded on 13 May 2018 7:47 PM
My Badges

I have managed to deploy my custom workflow by cleaning my project building as 4.5 and deploying. However trying to move the solution file to live gives me the same error as before on import. I will try and redeploy tomorrow using 4.6.2 and reinstalling the framework locally as an additional test

Reply
Zhenyu Wang responded on 13 May 2018 9:09 PM
My Badges

I have the same issue today.

It was ok on Friday 5pm, 11 May 2018, Brisbane time.

I have to change back to 4.5.2, then it works.

so weird.

Reply
Vladimir Karukes responded on 13 May 2018 10:15 PM

I managed to get it working with .NET 4.5.2 after finding that one of the Crm sdk dlls was set to be copied into the local folder and since I was using ILMerge, it led to an error. But I can definitely confirm that .NET 4.6.2 didn't work.

Reply
Per Soerensen responded on 14 May 2018 3:34 AM

Hi,

We have the same problem as of this morning, have anybody found a solution ?

Our DLL's have the always been build wint .net 4.6.2, and now we cannot update the assemblies..

PLZ Help !!

Reply
sjbbaggie responded on 14 May 2018 3:55 AM

We are having the same problem this morning - reverting to 4.5.2 has fixed it but where do we go from here - leave it a 4.5.2?  What happens in the future - should we upgrade back to 4.6.2?

Reply
Per Soerensen responded on 14 May 2018 3:58 AM

Hi,

Our project was never on 4.5.2, worked fine last week ..

/??

Reply
sjbbaggie responded on 14 May 2018 4:16 AM

ours was fine until today - we deployed 4.6.2 to both dev and test last week no problems

Reply
Biplab Singha responded on 15 May 2018 9:08 PM
My Badges
Suggested Answer

The issue is misleading and inconsistent. In My organisation the below things Happened

1. If Plugin assembly and workflow assembly both are in 4.6.2, it fails

2. If Plug in is in 4.52 and workflow is 4.6.2 things works fine

For a temporary fix change the version to 4.5.2 it should work as it worked for me

Reply
Red Hodgerson responded on 5 Jun 2018 9:59 AM
My Badges
Suggested Answer

There are a couple of things causing confusion here.

1.  The last few versions of Dynamics 365 require .NET version 4.5.2 for plugins as outlined at docs.microsoft.com/.../write-plugin

2.  Dynamics 365 v9 recently started strictly enforcing this requirement when it didn't before.

3.  There is a product defect in the error message thrown, where the current .NET version of the assembly is shown instead of "4.5.2".

If you're absolutely sure that you're building against 4.5.2 and still seeing this error, there is something else going on.  But, the majority of these posts should fall in to the above category.

Bottom line:  You must use .NET 4.5.2.

Reply

SBX - Two Col Forum

SBX - Migrated JS