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?

Re: Problems connecting to CRM web service by Michael

Michael
Wed May 09 08:24:32 CDT 2007

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 Höhne, 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" <MichaelF@discussions.microsoft.com> schrieb im Newsbeitrag
news:A0E130D7-0FD3-4BA9-A415-9AB05B4B0CDD@microsoft.com...
> 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?
>
>



Re: Problems connecting to CRM web service by MichaelF

MichaelF
Wed May 09 08:48:01 CDT 2007

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.

"Michael Höhne" wrote:

> 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 Höhne, 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" <MichaelF@discussions.microsoft.com> schrieb im Newsbeitrag
> news:A0E130D7-0FD3-4BA9-A415-9AB05B4B0CDD@microsoft.com...
> > 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?
> >
> >
>
>
>