Windows 2008 server Task Scheduler giving error 0XC0000005

2

I have published a console application through .Net Core2, and copied the output folder with EXE file on server.

If I double click and execute it is running all fine. But when I am scheduling it though task scheduler it is giving error - 0XC0000005

Any idea what needs to be fixed, or how to troubleshoot this more.

I did try to recreate it from the Administrator account too, but same issue.

.net
asp.net-core
console-application
windows-server-2008
taskscheduler
asked on Stack Overflow Mar 6, 2018 by A Developer

2 Answers

1

Setting the - Start In value did the job for me.

answered on Stack Overflow Mar 6, 2018 by A Developer
0

It appears that .Net Core console app needs to run with the optional path so it can find the appsettings.json if you are using one.

Schedule a .Net Core console application on windows using Task Scheduler

Edit Action

answered on Stack Overflow Jul 1, 2018 by Breadtruck • edited Jul 1, 2018 by Breadtruck

User contributions licensed under CC BY-SA 3.0