Hi, i am tryng to connect CRM 365 On-Premise in my console application. I used this code below:
IOrganizationService _service; ClientCredentials _credit = new ClientCredentials(); _credit.UserName.UserName = "myoffice\fikri.hailal"; _credit.UserName.Password = "password"; _service = new OrganizationServiceProxy(new Uri ("myoffice/.../Organization.svc"), null, _credit, null);
But when i debug the console application. It says, "the caller was not authenticated by the service".
Strangely when i used this code for CRM Online and other CRM On-premise, it connect successfully. What did i miss ?
Or did i need a user with specific criteria ?
*This post is locked for comments