i'm trying to simple console app for CRM 2013 On-prem,. But i'm having it thow an error at me like it's not authenticating but when i use the same code on another CRM it works perfectly.
The Error is: "The authentication endpoint Kerberos was not found on the configured Secure Token Service!"
i've checked the usual for adfs issue such as checking in the DB, to see what the active mex endpoint is and it's in the following format for both entrys: https://adfs.DOMAIN.com/adfs/services/trust/mex which i can access via the browser fine.
use MSCRM_CONFIG
select * from dbo.FederationProvider
On the Code side
My App.config connection string:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="microsoft.xrm.client" type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>
</configSections>
<connectionStrings>
<!--<add name="Xrm" connectionString="Server=https://crm.bluechip.uk.com/; Domain=BLUECHIP; Username=Ben Denness;Password=R0adRunner"/>-->
<add name="Xrm" connectionString="Url=https://crm.DOMAIN; Domain=DOMAIN; Username=Ben; Password=PAssword;"/>
</connectionStrings>
<microsoft.xrm.client>
<contexts>
<add name="Xrm" type="Xrm.XrmServiceContext, Xrm"/>
</contexts>
</microsoft.xrm.client>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup>
</configuration>
I've even simplifed the code to this:
var xrm = new XrmServiceContext("Xrm");
private static void GetContact(XrmServiceContext xrm)
{
var result = from r in xrm.ContactSet where r.EMailAddress1.EndsWith("@.uk.com") select r;
foreach (Contact contact in result)
{
Console.WriteLine(contact.EMailAddress1);
}
}
I've no idea what i'm doing wrong, or what is actually going on. If there is a better way or another way to authenticate then please tell me thanks.
use MSCRM_CONFIG
select * from dbo.FederationProvider






