Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Issue with Microsoft.CrmSdk.CoreAssemblies installation

(0) ShareShare
ReportReport
Posted on by

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. 

  • Rebel Leader Profile Picture
    on at
    RE: Issue with Microsoft.CrmSdk.CoreAssemblies installation

    Resolution: The main issue is with the visual studio. In visual studio in Nuget package manager the source org URL is missing. The correct URL is api.nuget.org/.../index.json. Now thee SDK Toolkit is able to install in the machine.

    You may receive an invitation from Microsoft to complete a brief web feedback request. Your feedback is very important to us. We use it to continually improve our service. We would appreciate it if you can take the time to complete this feedback request. In addition, if you would like to discuss any feedback you can contact me or my manager using the contact information in my signature.

  • Suggested answer
    Rebel Leader Profile Picture
    on at
    RE: Issue with Microsoft.CrmSdk.CoreAssemblies installation

    Solution, for whatever reason the package source was not created.  Had to create nuget manaully.

    pastedimage1627486215328v1.png

  • Suggested answer
    Ed Edwards Profile Picture
    5 on at
    RE: Issue with Microsoft.CrmSdk.CoreAssemblies installation

    I experienced a similar issue, caused by a version conflict that results from TRYING to follow Microsoft instructions.

    The instructions led me to install 9.0.2.9 using NuGet first, and later had me install 9.0.2.17. PackageManager "updated" my version, by removing 9.0.2.9 and installing 9.0.2.17. However, "Pending Changes" in Visual Studio was updated by adding 9.0.2.17, but NOT removing 9.0.2.9 from the list of pending changes. As a result, on check-in, it was attempting to check in 9.0.2.9, which no longer existed on my hard drive.

    If your "Pending Changes" window shows duplicate packages under 2 different version numbers, try removing the lower version.

  • Suggested answer
    Emre GULCAN Profile Picture
    2,379 on at
    RE: Issue with Microsoft.CrmSdk.CoreAssemblies installation

    Hi,

    Microsoft.CrmSdk.CoreAssemblies package requires .NET Framework 4.6.2 and above after releasing v9.0.2.9, please check release notes from official NuGet page www.nuget.org/.../Microsoft.CrmSdk.CoreAssemblies

    So, you have to upgrade your project .NET Framework version

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans