Hi guys
We've written a Windows Service that needs to send an HTTP request in order to post some xml data to another server. When we test the code via a console application, it works fine, but when we test it by running it as a service, it errors on this line of code:
var httpWebRequest = (HttpWebRequest)WebRequest.Create(Uri);
The error message is:
"Configuration system failed to initialize"
We're thinking the error is due to the User Account under which the Windows Service is running not having the permissions to make HTTP requests, we've tried running it under the local administrator account, but to no avail. It's not a question of supplying a username and password because when we run the code as a Console Application, the above line of code executes fine.
Any suggestions greatly appreciated! Many thanks.