Hi All,
I am trying to connect with my online CRM through a C# application but unable to connect through the following code.
ClientCredentials credentials = new ClientCredentials();
credentials.UserName.UserName = "testUser";
credentials.UserName.Password = "abcd@123";
Uri serviceUri = new Uri("orgname/.../Organization.svc");
OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, credentials, null);
I am getting error in the last line.
"An exception of type 'System.InvalidOperationException' occurred in Microsoft.Xrm.Sdk.dll but was not handled in user code
Additional information: Metadata contains a reference that cannot be resolved: 'orgname/.../Organization.svc'.
"
Any Help???
*This post is locked for comments