Windows Service connecting to Web Service

From: Yuri Padorin (Padorin_at_discussions.microsoft.com)
Date: 07/29/04


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?
 



Relevant Pages

  • 401 error after Keep Alive timeout ...
    ... We have a .NET 1.1 Web Service that is set up for basic authentication ... with a Keep Alive setting of 900 seconds. ... processing the 401 error by resending the credentials. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Access Problem connecting to Web Service from Windows Service
    ... I have a C# Web Service that I would ... I have configured my windows service to run as a particular user account. ... service's credentials to connect to the web service -- anyone have any ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Windows Service connecting to Web Service
    ... Are you sure the problem isn't with the SSL connection? ... the web service address with a web browser, ... > The connection to the web service is HTTPS and it reads NTLM credentials ... > I have attempted to create a windows service to do the same, however, I ...
    (microsoft.public.dotnet.security)
  • Passing Credentials from a web page to a web service
    ... I have a web page that needs to call a web service. ... are secured using Basic authentication. ... the credentials that were used to log into the web page ... When I used the GetDefaultCredentials method and passed ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: A web service inside a windows service?
    ... windows service, but when we introduce the web service it means that we'll ... > performance of Remoting SOAP to Remoting Binary. ...
    (microsoft.public.dotnet.languages.csharp)