Tuesday, April 3, 2012

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


  1. 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."

    Can please some needful....

  2. HiVegunati,

    Try the steps described in the following link


  3. Hi Sammani,
    There 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.