Hi
I've created a plug-in that generates an Account number based on a structure held in a custom CRM entity. It works fine in my development environment and on a test server but when I try to deploy it to my customers server it falls over with the error below.
I've tried releasing it as a managed solution and when that did not work downloading the SDK and registering it with the Registration tool but I keep getting the same error.
David
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Object reference not set to an instance of an object.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<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>Object reference not set to an instance of an object.</Message>
<Timestamp>2016-04-26T15:43:48.1367049Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[ERM2016Plugins: ERM2016Plugins.AccountNumberPlugin]
[fe56f503-bf0b-e611-80c0-005056942bef: ERM2016Plugins.AccountNumberPlugin: Create of account]
</TraceText>
</OrganizationServiceFault>