thanks for the update.
When exception occurs in plugin, how you will initiate organization proxy to create error record in crm?
we are unable to create org service proxy in isolation( sandbox) mode of the plugins. getting error(
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:
Unexpected exception from plug-in (Execute): OKNGMS.Crm.Plugins.FundingCallPlugin: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
/>
<Message>Unexpected exception from plug-in (Execute): OKNGMS.Crm.Plugins.FundingCallPlugin: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</Message>
<Timestamp>2015-05-02T11:20:15.8165743Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
)
If possible could you please share some sample utility code to generate proxy .
hari ________________________________________________________ If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"