Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Unable to connect CRM on premise through console app using "Service" account.Getting below error.

$
0
0

Unable to connect CRM on premise  through console app using "Service" account.Getting below error.Do we need to add any specific roles to device accounts other than "system admin" role.

Error:The caller was not authenticated by the service

OrganizationServiceProxy _serviceProxy;

ClientCredentials client = newClientCredentials();

client.UserName.UserName = UserName;

client.UserName.Password = Password;

using (_serviceProxy = newOrganizationServiceProxy(newUri(SoapOrgServiceUri), null, client, null))

{

_serviceProxy.Authenticate();

return (IOrganizationService)_serviceProxy;

}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images