Home     |     MS SQL Server    |     MS SharePoint    |     MS Visual Studio    |     MS Certifications    |     MS CRM     |     MS Office    |     MSF


Cervo Technologies
The Right Source to Outsource

microsoft.public.crm

Problems connecting to CRM web service


Hello Everyone,

I'm writing a tool to push data into CRM through the web service.  However,
the CRM server is on a different domain.  Running into problems with
authentication.

Code as follows:

 CrmService service = new CrmService();
 service.Url = "http://192.168.189.135/MSCRMServices/2006/CrmService.asmx";
 service.Credentials = new
System.Net.NetworkCredential("administrator","password","domain");

service.PreAuthenticate = true;

etc ...

Originally, when I didn't have the "service.url" line my first call to the
CRM service came back with Logon Failure message.  After reading the
newsgroups I added the URL and now I can make "1" call successfully.

All additional calls will result in the same Logon Failure message.

Any ideas?

Hi Michael,

Try service.PreAuthenticate = false;

Or omit the complete line. While recommended by Microsoft in the beginning,
it is now known to cause problems.

--
Michael Hhne, Microsoft Dynamics CRM MVP

Web: http://www.stunnware.com/crm2
Feed: http://www.stunnware.com/crm2/atom.aspx
Custom Lookup Dialog: http://www.stunnware.com/crm2/?area=customLookup

----------------------------------------------------------

"Michael F" <Micha@discussions.microsoft.com> schrieb im Newsbeitrag
news:A0E130D7-0FD3-4BA9-A415-9AB05B4B0CDD@microsoft.com...

Actually I tried both of those ... same thing

I've noticed that after the first call the credential values are reset to
empty which leads me to think it's a caching issue?

any thoughts.

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc