Good day to everyone. I would appreciate your advise about how to troublsehoot this issue:
Scenario:
- SSIS project with target to SQL 2016 and created using VS 2017
- C# Script component that needs to connect to Dynamics 365 v9 Online. Code target to .net 4.6.2. SDK references to the lastest dll versions available in nuget.
- Script compiled with no errors.
- Connection String tested in XRM Toolbox with no problems.
Problem:
The line of code in the Script:
- CrmServiceClient crmConn = new CrmServiceClient(connectionStringCRM);
Produces the following exception:
- Could not load type 'Microsoft.Xrm.Sdk.Deployment.DeploymentServiceFault' from assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
I tried the same approach and code several times in other projects with no problems so this time I am totally lost.
Thanks for any advice.