"An exception occurred during a WebClient request" when using the Task Scheduler
<p>I have a console app that downloads certain files from an FTP server. I'm using <code>WebClient</code> to do this like so:</p>

<pre><code>var cred = new NetworkCredential(user, password);
var downloadRequest = new WebClient();
downloadRequest.Credentials = cred;
downloadRequest.DownloadFile(host + FileName, target + FileName);
</code></pre>

<p>This works perfectly when I run the app normally. However, I need to run this in the weekend so I have had Task Scheduler run it on Sunday. But when I do, I always get this error in my log:</p>

<p><code>An exception occurred during a WebClient request</code></p>

<p>When I rerun it manually, it works perfectly. Is there anything I'm overlooking?</p>
