Windows Service connecting to Web Service
From: Yuri Padorin (Padorin_at_discussions.microsoft.com)
Date: 07/29/04
- Next message: uttara: "Re: basic authentication"
- Previous message: Justin Smith: "stack frame debug"
- Next in thread: Nicole Calinoiu: "Re: Windows Service connecting to Web Service"
- Reply: Nicole Calinoiu: "Re: Windows Service connecting to Web Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 Jul 2004 12:21:38 -0700
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?
- Next message: uttara: "Re: basic authentication"
- Previous message: Justin Smith: "stack frame debug"
- Next in thread: Nicole Calinoiu: "Re: Windows Service connecting to Web Service"
- Reply: Nicole Calinoiu: "Re: Windows Service connecting to Web Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|