Hello All Experts,
I am getting below error while calling the code .
"An error occurred when verifying security for the message.";
Below is my code .
EntityCollection ec = new EntityCollection();
IOrganizationService org=null;
org = new OrganizationServiceClient();
((System.ServiceModel.ClientBase<ConsoleApplication1.MDDev02NS.IOrganizationService>)org).ClientCredentials.UserName.Password = "*****";
((System.ServiceModel.ClientBase<ConsoleApplication1.MDDev02NS.IOrganizationService>)org).ClientCredentials.UserName.UserName = "pqr";
QueryExpression qe = new QueryExpression();
qe.EntityName = "account";
qe.ColumnSet = new ColumnSet() { AllColumns = true };
ec=org.RetrieveMultiple(qe); // Error at this line...
can anyone help me resolving this.
*This post is locked for comments