Hi All,
I am trying to connect to Microsoft Dynamics CRM online servers using organization service(using SDK's) and trying to install sample data, but I am getting below error.
"An error occurred when processing the security tokens in the message."
This error is recently introduced, i could able to connect earlier without any issues.
Can any one please let me know any solution to resolve this error.
My code
using (_serviceProxy = newOrganizationServiceProxy(serverConfig.OrganizationUri, serverConfig.HomeRealmUri, serverConfig.Credentials, serverConfig.DeviceCredentials))
{
// This statement is required to enable early-bound type support.
_serviceProxy.EnableProxyTypes();
_serviceProxy.Timeout = newTimeSpan(0, 10, 0);
InstallSampleDataRequest request = newInstallSampleDataRequest();
InstallSampleDataResponse response = (InstallSampleDataResponse)_serviceProxy.Execute(request);
Console.WriteLine("Sample data installation started.");
LogFile("Sample data installation started.");
return VerifySampleDataInstalled(_serviceProxy, serverConfig, dr);
}
I am getting error in this line of code
InstallSampleDataResponse response = (InstallSampleDataResponse)_serviceProxy.Execute(request);