Create OrganizationServiceProxy in CRM2011 IFD
Creating OrganizationServiceProxy in crm2011 IFD vs AD different when it comes to setting credentials of the service proxy.
In AD :-
ClientCredentials clientCredentials=new ClientCredentials();
clientCredentials.Windows.ClientCredential = new NetworkCredential(userName, password,domain);
In IFD :-
clientCredentials.UserName.UserName =domain + @"\" + userName;
clientCredentials.UserName.Password = password;
OrganizationServiceProxy service = new Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy(organizationUri, HomeRealmUri, credentials, null);
In AD :-
ClientCredentials clientCredentials=new ClientCredentials();
clientCredentials.Windows.ClientCredential = new NetworkCredential(userName, password,domain);
In IFD :-
clientCredentials.UserName.UserName =domain + @"\" + userName;
clientCredentials.UserName.Password = password;
OrganizationServiceProxy service = new Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy(organizationUri, HomeRealmUri, credentials, null);
I was trying to connect to IFD CRM with defalut credentilas but it's throwing error as "The NetworkCredentials provided were unable to create a Kerberos credential, see inner exception for details."
ReplyDeleteCan please some needful....
HiVegunati,
ReplyDeleteTry the steps described in the following link
http://blog.skadefro.dk/2011/05/adfs-crm2011-making-my-head-hurt.html
Hi Sammani,
ReplyDeleteThere also he is specifying the username and password....
I created SPN's evry thing done.... but am not able to connect crm with default credentials (network credentials).
By hard coding username and password connection successfully established.