Hi Developers,
I am trying to integrate the web application with the Dynamics 356 Online CRM.
It is making the connection to the organisation but while creating the contact it comes up with the following error "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code". Attached is the error screenshot
IServiceConfiguration<IOrganizationService> orgConfig = ServiceConfigurationFactory.CreateConfiguration<IOrganizationService>(new Uri("companyname.api.crm4.dynamics.com/.../Organization.svc")); ClientCredentials creds = new ClientCredentials(); creds.UserName.UserName = "username"; creds.UserName.Password = "somepassword"; creds.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials; var orgService = new OrganizationServiceProxy(orgConfig, creds); orgService.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
Can someone please help me to rectify this issue.
Many Thanks
Jibran
*This post is locked for comments