.net application failing when fired via scheduled task

前端 未结 4 1816
失恋的感觉
失恋的感觉 2021-02-04 15:42

I have a .net console application written in c# which does exactly what it should when run inside visual studio and when clicking the .exe file in the file system. It runs like

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 16:43

    The first of all, take a look on this http://support.microsoft.com/?id=257757

    You can try few things:

    • Run you task under real user account (make sure this account has access to network path)
    • 'Ogawa Hack', as mentioned here http://social.msdn.microsoft.com/Forums/en-US/b81a3c4e-62db-488b-af06-44421818ef91/excel-2007-automation-on-top-of-a-windows-server-2008-x64 create desktop folder for system account C:\Windows\SysWOW64\config\systemprofile\Desktop (or \System32\ if your system is 32x)

提交回复
热议问题