Re: Windows Service connecting to Web Service

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 07/30/04


Date: Thu, 29 Jul 2004 23:59:20 -0500

Another thing you can do in this case is implement a simple
ICertificatePolicy class that always returns true and add that to the
ServicePointManager.CertificatePolicy property. That will essentially
disable cert error checking and should prove if that is the problem. All in
all, it is better to resolve correctly though.

Joe K.
"Yuri Padorin" <YuriPadorin@discussions.microsoft.com> wrote in message
news:382F5311-1449-4187-8490-395A37456FAC@microsoft.com...
> Nicole,
> It is conceivable that the root CA cert is loaded in my profile (where the
command line client runs) and not the machine profile or at least the
"localservice" profile (that the windows service would be able to access
it). I'll try running the service under my credentials.
>
> "Nicole Calinoiu" wrote:
>
> > Yuri,
> >
> > Are you sure the problem isn't with the SSL connection? If you navigate
to
> > the web service address with a web browser, do you receive any
certificate
> > warnings?
> >
> > Nicole
> >
> >
> > "Yuri Padorin" <Yuri Padorin@discussions.microsoft.com> wrote in message
> > news:5E5C5F84-EF86-4750-96CE-C5FAA0E023C9@microsoft.com...
> > > I've got a console app that uses a filesystemwatcher to monitor a
> > > directory for new log files. It then parses the data in the file into
a
> > > dataset upon creation, then connects and sends the dataset to a
> > > webservice.
> > > The connection to the web service is HTTPS and it reads NTLM
credentials
> > > into a CredentialCache from a configuration file.
> > > Works like a charm, no problems.
> > > I have attempted to create a windows service to do the same, however,
I
> > > continue to get a "Could not establish trust relationship with remote
> > > server" WebException.
> > > I've run the service under the LocalService and the Local System
accounts.
> > > I've also debugged the process and confirmed that the credentials
stored
> > > in the app.config has been loaded.
> > > The network on which the windows service is to reside is separate from
the
> > > web service.
> > > I have to keep the web service secure, (I have tried basic
authentication
> > > also, since I'm already SSL, with the same results).
> > > So what am I missing to get the windows service to authenticate using
the
> > > cached credentials?
> > >
> >
> >
> >



Relevant Pages

  • Re: Roaming Profile still tries to load off network
    ... even before you logon to the computer when you are off the domain. ... also how the computer knows to used the cached credentials and does so very ... copy of the profile without trying to get it from the server. ... Try logging in with the network cable unplugged. ...
    (microsoft.public.windowsxp.general)
  • Re: Problem with a PC on the network.... not sure how else to describe it...
    ... deleting the profile by manually deleting everything ... There might be some credentials that were saved there. ... A value of 0 would clear all cached credentials - you would need to reset ...
    (microsoft.public.windows.server.sbs)
  • Domain credentials prompt
    ... Windows Server 2003 AD domain, Exchange 2003, OL2003. ... credentials upon launching Outlook, as though the computer was not joined to ... If she enters her credentials, ... OL profile recreated. ...
    (microsoft.public.outlook)
  • Re: Hiding a email profile until credentials are given in Outlook 2007
    ... prompted to select a profile if you select the secondary profile it loads the ... email account in the background while the credential request is posted. ... Outlook 2003's and Outlook 2007's behavior are identical when working offline, which is what you're telling Outlook to do when cancelling the credentials dialogue. ...
    (microsoft.public.outlook.installation)
  • Re: Users Manager
    ... either use the UserProfileService web service or use the UserProfileManager ... from the object model/API, ... >> profile will have the manager property set, if its set in AD. Use the ... >> profile web service or Object model to get the manager for the profile. ...
    (microsoft.public.sharepoint.portalserver)