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;
}






