Suppose we have a simple web service which uses CrmService to create contact records. Now we want to call this custom web service from within our plug-in.
On doing so, we might receive following errors
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
or
Microsoft.Crm.CrmException: No Microsoft Dynamics CRM user exists with the specified domain name and user ID
It could be because the credentials of the user are not getting passed from the plugin to the custom webservice.
Here we could the following
We can enable anonymous access and specify a valid CRM user’s credential there.
Bye..
