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


Comments

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

    ReplyDelete
  2. HiVegunati,

    Try the steps described in the following link

    http://blog.skadefro.dk/2011/05/adfs-crm2011-making-my-head-hurt.html

    ReplyDelete
  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.

    ReplyDelete

Post a Comment

Popular posts from this blog

Responsive Web Design

Affine Cipher in C#

Contract First Development in WCF 4.5