Hi all,
I want to connect online CRM account with Rest API(to authenticate) in .Net Core Console App to perform CRUD Operations.
But it shows an error of some compatibility issues.
Error while connecting to CRM Could not load type 'System.ServiceModel.Description.MetadataConversionError' from assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=34567VNXC'
How could i resolve the same?
*This post is locked for comments
I have same problem, how did you solve the problem ?
Hey Goutam, just wondering if above code is passing user credentials and pwd through the https call? Also this is using the organization service to get the token, which would be used in the subsequent API call back to D365, but that token for the user has an expiration.
Not trying to argue just want to learn more myself. The only way to set token expiration is when calling for the token from Azure AD.
If this works for Shakti that is great. Just wanted to make sure. Thanks.
Ah! in .NET core System.ServiceModel has been deprecated.
I am not sure how you get may be below reference helps you -
Create a new project--->Visual C#--->.Net Core(Console Application)
Then paste your code and install all the packages.
But it shows an error which is:-
can you share screenshot please.
This is not working in .Net Core console app at my end.
But in my application don't show any assemblies.
check here - Right click Add reference on the project under assembly --> framework you can find those. See here for more info-
System.Runtime.Serialization
System.ServiceModel
Unable to find above assemblies.
How could i get those assemblies?
Shakti ,
dont forget to close the thread by verifying correct answers , which helps other to implement in future .
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156