We are trying to install Microsoft.CrmSdk.CoreAssemblies in one of our API projects to consume data from our Dynamics org.
We used “Microsoft.CrmSdk.CoreAssemblies” of version 9.0.2.5 in POC (console application) which worked perfectly fine.
An update of the nuget package to version 9.0.2.9 was released on February 9, 2019.
This new package is not getting installed (in both API project and console app) and was throwing the following error.
“Could not install package 'Microsoft.CrmSdk.CoreAssemblies 9.0.2.9'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.”
So, we tried to install the package of lower version i.e. 9.0.2.5 which was used in our POC. We are facing the following exception on calling Authenticate method of IServiceManagement<TService>.
Exception Message:
There was no endpoint listening at https://dynamicscrmind.accesscontrol.windows.net/v2/wstrust/13/issuedtoken-asymmetric that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
Inner Exception:
The remote name could not be resolved: 'dynamicscrmind.accesscontrol.windows.net'
So, we followed the below link for sample code, in which the package of version 8.2.0.2 was being used. When we installed package of that version code is working fine.
https://code.msdn.microsoft.com/Authenticate-users-with-707e0375/sourcecode?fileId=182967&pathId=1984317842
Is it a known issue with the higher version packages or are we missing something ? Is there a way to make the new version working in our project?
Thanks in advance.