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.
*This post is locked for comments
Excellent point - I wasn't using the v9 registration tool. Will try tonight.
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.
I did try to change the build to 4.5.2 even tried 4.6.2 and 4.7.1 But I still get this error-
This plugin assembly uses version XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXX of the .NET Framework. At this time Microsoft Dynamics 365 requires version XXXX of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version XXXX and try again.
This plugin was working fine before. I am just trying to update some content in the plugin.
pskamble1,
You would need to provide a bit more information in order for anyone to help you. A common solution has been to switch to .NET 4.5.2.
I keep getting the same error. None of the builds is working for me. Any suggestions?
We were using .NET Framework 4.7.1 for the target framework for plug-ins last week. We are using Dynamics 365 V 9.0 online. The plug-in registered fine. This morning it stopped working. We were getting this error:
"...This plugin assembly uses version xxxxxxxxxxxxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxx of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.7.1 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.7.1 and try again...."
We switched to 4.5.2 and it works. Tried 4.6.1 and 4.7.1 again and get the same error.
Changing .NET framework to 4.5.2 worked for me as well
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
Have a look at your assembly in JustDecompile (from Telerik) or some other tool - make sure it's actually targetting 4.5.2 when you are looking at it that way
I have the same issue.
4.5.2 doesn't work and 4.6.1 or 4.6.2 I can't register\update.
Week ago I've successfully updated 4.6.2. But for now I can't do the same as before.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156