title: Task Scheduler: WPF/C# run failing with error (though works when launching .exe on its own)
body: <p>Fellow coders,
  I've built a WPF/ C# application (with .net 4), the app runs fine if debugging or even launching the ".exe" on its own, the app itself runs with <strong>Administrator privileges</strong>. While running with Administrator privileges I made it add itself as a Task in the "Task Scheduler".
  I've made sure the "Run with highest privileges" was checked while creating the task (and verified in the <strong>Task Scheduler</strong> that everything was set like it was supposed to)</p>
  
  <p>When running the task, the task fails and I see this error:
  Task Scheduler failed to launch action <strong>"MYPATH\MyClient.Common.dll"</strong> in instance "{8df36ee7-0db9-4807-9b5d-d43a793f2169}" of task "\MyClient". Additional Data: <strong>Error Value: 2147942593</strong>.</p>
  
  <p>I don't understand where this is coming from specially that the MyClient.Common.dll has nothing special; just some logging stuff and a few helpers.
  Here are the dlls MyClient.Common.dll is referencing:</p>
  
  <ul>
  <li>Microsoft.CSharp </li>
  <li>System</li>
  <li>System.Core</li>
  <li>System.Data</li>
  <li>System.Data.DataSetExtensions</li>
  <li>System.Management</li>
  <li>System.Xml</li>
  <li>System.Xml.Linq</li>
  </ul>
  
  <p>I've tried looking for the error value: "<strong>2147942593</strong>" but no luck.
  Thank you in advance!</p>