Good day to everyone. I would appreciate your advise about how to troublsehoot this issue:
Scenario:
Problem:
The line of code in the Script:
Produces the following exception:
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.
*This post is locked for comments
After a little bit of troubleshooting I found the cause for the problem. Because I was working on a SSIS package, I was using the approach documented in this link "blogs.msdn.microsoft.com/.../" to use the SDK dlls from a local path. It seems that the order of the dlls being called in the methods described in the article it is important because when the Xrm.Tooling.Connector.dll reference was included prior to the Xrm.Sdk.dll, the connection worked like a charm even thought there was no any reference to the Microsoft.Xrm.Sdk.Deloyment.dll in the project. I hope this helps somebody in the future.
Thanks Abby. Microsoft.Xrm.Sdk.Deloyment.dll was already referenced in the project and it was obtained from nuget. The latest version of the dll was 9.0.2.12. Problem is still there.
Hi Xavier,
The exception seems to be about Microsoft.Xrm.Sdk.Deployment, this package contains Microsoft.Xrm.Sdk.Deloyment.dll, can you try adding this NuGet package?
www.nuget.org/.../Microsoft.CrmSdk.Deployment
If you've got it working in XrmToolBox, you can open the folder where XrmToolBox is and check if that DLL is inside.
Regards,
Abby
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156