We developed an application using the crm SDK web services. When we access
the application, we get an error:

The request failed with HTTP status 401: Unauthorized.

If we refresh the page again (hitting F5), we do not get the error. It
seems that the first time CRM authentication fails but the second time it is
ok (on refresh).

We have MS CRM 3.0 deployed on Windows 2003 server using IIS 6.0. The
custom application is using windows authentication and is on the same server
as CRM in a virtual directory.

Any ideas?

Thanks

RE: HTTP status 401: Unauthorized error by RichReynolds

RichReynolds
Fri Nov 03 05:50:01 CST 2006

Are you using 'PreAuthenticate' when connecting to the service if so comment
this part out as Microsoft notes that this causes sporadic behaviour with 401
unauthorised errors occuring.
Microsoft actually recommends avoiding using this at the moment.

Cheers
Rich


Re: HTTP status 401: Unauthorized error by AD

AD
Fri Nov 03 06:54:47 CST 2006

Yes I am using 'PreAuthenticate' when connecting, will comment it out and
let you know.

Thanks



"Rich Reynolds" <RichReynolds@discussions.microsoft.com> wrote in message
news:DF4EFBD5-2F8E-4B2B-ACA3-1E7B9C2D8B9A@microsoft.com...
Are you using 'PreAuthenticate' when connecting to the service if so comment
this part out as Microsoft notes that this causes sporadic behaviour with
401
unauthorised errors occuring.
Microsoft actually recommends avoiding using this at the moment.

Cheers
Rich