Hello,
I am writing a plugin for a client and I would like to use the Early Bound classes generated from the CrmSvcUtil.exe
The problem I'm facing is that when I try to create a record with the call service.Create() or even with the OrganizationServiceContext.AddObject() and SaveChanges() I get an error:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Error: An error occured while processing this request.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>45a451ed-3f96-4595-85bc-8fd710ff3400</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Error: An error occured while processing this request.</Message>
<Timestamp>2017-10-10T12:19:21.3805954Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[SBD_LicenseManager: SBD_LicenseManager.LicenseManagerPlugin]
[ceffcfcf-fdac-e711-813b-e0071b651f51: SBD_LicenseManager.LicenseManagerPlugin: Update of new_reportentitlement]
</TraceText>
</OrganizationServiceFault>
Could you please tell me what I am doing wrong?
Please note this is a plugin registered with the plugin registration tool. I have developed the equivalent as a Console Application and I get Secutiry Permission error.
Thank you for your time.