Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin registration tool debug error thrown after moving plugins to Net 4.6.2

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am having a problem debugging a plugin "Opportunities Pre Update" (Other plugins like Account are debugging okay), having set the profiling up, when I trigger it I get a business error (significant part below), it basically can't deserialize the object. I have checked and the Microsoft.Crm.Sdk.PRoxy.dll is the very latest and the plugin registration tool are the latest version - 9.0.2.12. Has anyone got any ideas of how to tackle this problem, I can't debug the plugin at all.

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Runtime.Serialization.SerializationException: Element 'schemas.datacontract.org/.../System.Collections.Generic:value' contains data from a type that maps to the name 'Microsoft.Crm.Sdk:OptionalParameter[]'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'OptionalParameter[]' and namespace 'Microsoft.Crm.Sdk'.

Thanks in Advance,

Rod

*This post is locked for comments

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans