Hi, i'm using Crm online,
I have a plugin that is executed with the change of state, which creates connects to a rest, when change of state I generate general error "Unable to connect to the remote server", the credentials used in the rest were validated in soap and works correctly:
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Plugins_IntegracionSGI: Unable to connect to the remote serverDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>47b8b09f-9756-478a-bd58-b94a98f3744d</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> Plugins_IntegracionSGI: Unable to connect to the remote server</Message>
<Timestamp>2019-06-21T15:14:58.4604974Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[Plugins_IntegracionSGI: Plugins_IntegracionSGI.Plugins_IntegracionSGI]
[9217744e-38c0-e811-a970-000d3ac1bbe7: Plugins_IntegracionSGI.Plugins_IntegracionSGI: Update of ap_licitacion]
Starting sync workflow '[SE - 15] Registrar bitácora de cambio de estado para licitación', Id: 1fc0ff8c-07f8-e811-a976-000d3ac1b8d2
Sync workflow '[SE - 15] Registrar bitácora de cambio de estado para licitación' completed successfully
</TraceText>
</OrganizationServiceFault>
*This post is locked for comments