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)

SDK: Upgrade of .net Framework from 4.5.2 to 4.6 breaks custom plugins and workflows

(0) ShareShare
ReportReport
Posted on by 55

we try to upgrade the .net framework version of our custom plugin and workflow projects. unfortunately this breaks all registered plugins and workflows.

We are using CRM Online, all assemblies are in sandbox mode.

System.MissingMethodException: Method not found

Does anyone know, how to avoid to re register all Plugins, Steps and Workflows?

Thank you in advance

Fbrem

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    We are currently trying to re-compile our plugins against .net 4.6.

    The exception we get sounds like the same as above:

    System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.

    This occurs when a call to ITracingService.Trace and only a string is passed in without any params to substitute in. (params object[] args)

    This is ok at 4.5.2.

    This is ok on prem when the plugin is compiled targeting 4.6

    This fails on line when the plugin is compiled targeting 4.6.

    Is this the exception you were experiencing ?

    Was the only solution to re-register the plug-ins because the symptoms are as if CRM online is running 4.5.2.

  • Felix Brem Profile Picture
    55 on at

    Hello Caffreybcc,

    Is this the exception you were experiencing ?

    It sounds like, but i have to verify it. If so, thank you very much for some kind of solution, because in this case we can probably pass a dummy parameter to the tracing calls. How did you figure out, that this is related to the tracing service? I

     

    Was the only solution to re-register the plug-ins because the symptoms are as if CRM online is running 4.5.2.
    This was a assumption i made, but i did not test it out, because i did not want to break our environment. Also, i have been in vacation the last 2 weeks, so this problem was on idle.

    not a very helpful response, sorry for that :-/

  • Verified answer
    Felix Brem Profile Picture
    55 on at

    It seems, that online only .net version 4.5.2 is supported. I did not found a solution to this.

    https://msdn.microsoft.com/en-us/library/gg328350.aspx#SupportNET

  • Edwin Hebbink Profile Picture
    80 on at

    When you build the plugin in VS2013 with .NET 4.6.1 the trace can be written as

    tracingService.Trace("TraceMessage");

    However if you build with VS2017 with .NET 4.6.1 this throws the Method not found: '!!0[] System.Array.Empty()'. error

    You can fix this by either downgrading to .NET 4.5.2 of writing the trace like this

    tracingService.Trace("{0}", "TraceMessage");

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