Hi
Having issue on connecting to my environment in my console app.
Metadata contains a reference that cannot be resolved: 'adfs.hostname.com/.../mex'.
Anyone knows how to resolve this? Thanks.
*This post is locked for comments
Hi
Having issue on connecting to my environment in my console app.
Metadata contains a reference that cannot be resolved: 'adfs.hostname.com/.../mex'.
Anyone knows how to resolve this? Thanks.
*This post is locked for comments
Thanks for the response. I updated to 9.0.2.12, which is the latest version, but still getting the same error. Think I figured it out. The top level SSL certificate needs to be installed on our servers.
update to the new version of .net 9.0.0.7, in new update this problem has been solved,i suggest you to use xrm tool .
Hi, Can you tell me how you resolved this issue as I'm running into the same problem. Thanks.
Hi guys.
Thank you for taking time to check my inquiry.
The issue is now fixed. According to some suggestions on my research.
I just tried to update .NET framework to 4.6 and Microsoft.CrmSdk.CoreAssemblies to 9.0.0.7
The issue is now fixed. According to some suggestions on my research.
I just tried to update .NET framework to 4.6 and Microsoft.CrmSdk.CoreAssemblies to 9.0.0.7
Hi
For your credentials part, could you try with the following
var _credentials = new ClientCredentials();
_credentials.Windows.ClientCredential.Domain = "domainname";
_credentials.Windows.ClientCredential.UserName = "username";
_credentials.Windows.ClientCredential.Password = "pw";
And TLS12 setting is not necessary for CRM 2016.
Hi David. Thank you for the tips.
I tried to connect using xrmtoolbox and it worked.
I used this code to establish connection. This code works to my trial environment. But when I tried to connect to our environment with adfs setup, connection error pops up. Do you have any idea what I missed in the code connecting to environment with adfs setup?
The first things I'd check are:
It's also worth checking if you can connect programmatically using other tools. I'd suggest using XrmToolbox. If you can connect, it indicates an issue in your code, whereas if you can't, then it's more likely to be an ADFS or CRM ADFS configuration issue
André Arnaud de Cal... 291,472 Super User 2024 Season 2
Martin Dráb 230,560 Most Valuable Professional
nmaenpaa 101,156