I have this Windows service that is fetching data using .NET's Webclient. It works perfectly fine when I am debugging or running the exe
But when I install and run the service (on same computer), only then is it hitting my company filter. I get back an HTML that starts with
<html>
<head>
<title>Restricted Web Site</title>
The (F#) code in question:
let wc = new WebClient()
wc.Proxy <- WebProxy(ConfigurationManager.AppSettings.["proxy"], true, null, CredentialCache.DefaultCredentials)
wc.DownloadString("http://......")
Can I get help with brainstorming? I'll repeat that this is only failing to get the right data when this is installed/running as a Windows service (I am using TopShelf)