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.
Setting the - Start In value did the job for me.
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
User contributions licensed under CC BY-SA 3.0