Task Scheduler cannot run application
<p>I wrote a C#.net 2.0 Console Application in Visual Studio 2012. It fetches currency and save data to MS Access successfully. But when I try to run it by Task Scheduler it doesnt run. </p>

<p>Although application completes codes in 3-4 seconds normally, when I had run it in Task Scheduler it seems Running and never completes anything. </p>

<p>It gives these errors in event logs:</p>

<pre><code>Version=1
EventType=CLR20r3
EventTime=130990590017921570
ReportType=2
Consent=1
UploadTime=130990590019310981
ReportIdentifier=a099e48c-cb32-11e5-bf25-001f298d0a8f
WOW64=1
Response.BucketId=dbb55061274ff83bb427ed5f7309e3ba
Response.BucketTable=5
Response.LegacyBucketId=129010695092
Response.type=4
Sig[0].Name= Problem Signature  01
Sig[0].Value=wp2access.exe
Sig[1].Name= Problem Signature  02
Sig[1].Value=1.0.0.0
Sig[2].Name= Problem Signature  03
Sig[2].Value=56b332fb
Sig[3].Name= Problem Signature  04
Sig[3].Value=System.Data
Sig[4].Name= Problem Signature  05
Sig[4].Value=2.0.0.0
Sig[5].Name= Problem Signature  06
Sig[5].Value=537ea536
Sig[6].Name= Problem Signature  07
Sig[6].Value=1e6d
Sig[7].Name= Problem Signature  08
Sig[7].Value=85
Sig[8].Name= Problem Signature  09
Sig[8].Value=System.Data.OleDb.OleDbException
</code></pre>

<p>I tried </p>

<ol>
<li>to move application to upper folders(D:\Services\ etc.)</li>
<li>gaved full permissions for (Users, NETWORKS Service, NETWORK) to app.exe and db.mdb and its folder</li>
<li>gaved full permissions to C:\Users\HP\AppData\Local\Temp</li>
<li>marked copy local for references (System, System.Data, System.XML) and copied them in application folder</li>
<li>Changed .net framework version from 2.0 to 3.0, 3.5, 4.0</li>
<li>Tried in Windows Server 2012 also. (Runs successfully by double clicking in GUI, but not in Task Scheduler)</li>
<li>Changed user Account in Task Scheduler (My Personel Account, SYSTEM etc.)</li>
</ol>

<p>But nothing changed. I can not solve why application runs successfuly with double click in GUI, but not by Task Scheduler.</p>

<p>Any help on solving this would really be appreciated.
Thanks.</p>