Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

Hi,

Currently I am working in Dynamics 365. I created a plugin and uploaded for lead(Post Operation). when I tried created the lead it shows Two types of exceptions

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

2. Generic SQL error.

   

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>98c8caae-1fc1-4742-8410-92a8777d6512</ActivityId>
<ErrorCode>-2147204784</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Generic SQL error.</Message>
<Timestamp>2018-03-13T17:10:31.7571437Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

can any one please suggest me how to fix this issue. Its very urgent for me.

 Thanks in Advance

*This post is locked for comments

  • Suggested answer
    Michel van den Brink Profile Picture
    4,697 on at
    RE: System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.

    Hello,

    This is a pretty common error. You are using a specific Linq extension method which was introduced in .NET 4.6.

    The server where your plug-in as been provisioned will throw this Exception when .NET 4.6 is not installed.

    (some Dynamics 365 Online servers are a little slow on updates, especially when you have not yet upgraded to Dynamics 365 v8.2)

      

    Try recompiling your plug-in project on .NET 4.5.2 and update your plug-ins in the organization.

      

    Reference:
    https://stackoverflow.com/questions/31253747/method-not-found-0-system-array-empty-asapp-bundleconfig-registerbundl 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans