I have been utterly unable to get the SDK to work for me, trying any
permutation of credentials, explicit permissions and I always get the 'Server
was unable to process request.' error message. I'm trying to access the CRM
webservice from another machine, and web references are setup (I hope)
correctly.
On closer inspection this is the InnerXML field in the details of the
exception:
<error>
<code>0x80041d1f</code>
<description>The user Id is invalid.</description>
<type>Platform</type>
</error>
The code that generates it?
service = new CrmService();
service.Url = "http://<server>:5555/mscrmservices/2006/crmservice.asmx"
service.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
WhoAmIRequest userRequest = new WhoAmIRequest();
WhoAmIResponse user = (WhoAmIResponse)service.Execute(userRequest);
If I try to simply run a service.Create() command my program seems to simply
mysteriously quit, without any error messages.
Tried using explicit Credentials:
Service.Credentials = new System.Net.NetworkCredential("user", "password",
"domain");
This is annoying me to no end, please help.