web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

The data contact type 'Microsoft.Xrm.Sdk.OrganizationserviceFault' cannot be serialized in Partial trust becuase the property 'ExecutionRetriable' does not have a public getter

(0) ShareShare
ReportReport
Posted on by 15

Hi Team ,

I am facing the below error  for the below scenario : 

Environment :  OnPremise

CRM Version :  Dynamics CRM 2016.

Access : I have System admin and deployment admin role access

System  :  Citrix

Isolation Mode :  None

I have registered the assembly and created the record. Functionality is working fine. I want to try to debug the plugin. 

I have chosen as "Exception".

and set Profiled for the Plugin step.

After that i am trying to create record that time it should be generate Log file, but generating the below error.

unexpected exception from plug-in(Execute): PluginProfiler.Plugins.ProfilePlugin: system.Security.SecurityException: The data contact type 'Microsoft.Xrm.Sdk.OrganizationserviceFault' cannot be serialized in Partial trust becuase the property 'ExecutionRetriable' does not have a public getter

Troubleshoot:  I have done the below trouble shoot , but no luck.

i) uninstall and reinstall profiler.

ii) tried both sandbox/none mode

iii) added runtime.serialization dllPlugin-Error.PNG

  • Suggested answer
    Johnny Gong Profile Picture
    6,482 Moderator on at

    Good day Chandrasekaran Rengarajan,

    Have you tried to enable 'logging to Plug-in Trace Log' in D365 System Setttings?

    pastedimage1569306306955v1.png

    You could refer to the following Blog sharing from Carl de Souza.

    https://carldesouza.com/data-contract-cannot-be-serialized-error-in-dynamics-365-plugin/

    Looking forward to hearing from you.

    Regards

    Johnny

  • Chandrasekaran Rengarajan Profile Picture
    15 on at

    Hi Team,

    Already i done the same .. but no luck .. still i am facing the same issue

  • Johnny Gong Profile Picture
    6,482 Moderator on at

    Good day Chandrasekaran Rengarajan,

    Thanks for your following up.

    There's one similar thread with suggestion from Michael Mittermair: 'Based on the exception I assume, your plugin is registered in the Sandbox-Mode. In the Sandbox, not all operations are allowed. This is indicated by 'partial trust'. You can try to register your plugin in none-sandbox-mode and/or make your dll fully-trusted'

    And customer finally tried the same code on new trial instance where the code worked. I believe you still could have a try.

    community.dynamics.com/.../plugin-error

    Looking forward to hearing from you. Thanks.

    Regards

    Johnny

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans