Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

plugin error "Derived types must either match the security accessibility of the base type or be less accessible"

(0) ShareShare
ReportReport
Posted on by 60

Hi,

I'm deploying a plugin which operates on a custom entity in Dynamics CRM 2013. When the plugin fires, it throws an error which I don't know how to analyze. Can you please suggest what to look for?

Error:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): CRM2020.Plugins.FullNamePlugin: System.TypeLoadException: Inheritance security rules violated by type: 'Xrm.cust_import'. Derived types must either match the security accessibility of the base type or be less accessible.Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Unexpected exception from plug-in (Execute): CRM2020.Plugins.FullNamePlugin: System.TypeLoadException: Inheritance security rules violated by type: 'Xrm.cust_import'. Derived types must either match the security accessibility of the base type or be less accessible.</Message>
<Timestamp>2020-09-23T15:43:48.8295639Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>

[CRM2020.Plugins: CRM2020.Plugins.FullNamePlugin]
[92d59506-c4fc-ea11-8111-00155d00e237: CRM2020.Plugins.FullNamePlugin]


</TraceText>
</OrganizationServiceFault>

  • Verified answer
    GhassanK Profile Picture
    GhassanK 60 on at
    RE: plugin error "Derived types must either match the security accessibility of the base type or be less accessible"

    SOLVED - the plugin was registered in isolation mode set to "sandbox", which caused the error. Changing it to "None" worked

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