.net application failing when fired via scheduled task

前端 未结 4 1815
失恋的感觉
失恋的感觉 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:35

    You should grant to the specified user access to COM automation factory:

    • 1) Start->Run->dcomcnfg
    • 2) Component Services->Computers->My Computer
    • 3) Right-click My Computer, Properties
    • 4) COM Security tab, Launch and Activation Permissions, Edit Default
    • 5) Add all access rights for the specified user, you are using to run scheduled task.

提交回复
热议问题