I have a very simple .Net application which creates folders on a daily basis, usually I run it manually and have done for almost a year, yesterday I decided to schedule it to save time, when I ran into a problem we have been encountering for a long time now on our projects.
When the scheduled time arrives the application runs, but crashes, leaving only “the Specified Query is incorrect” on the Task Scheduler interface. I then run the exe manually and it works again, so next I try to run it manually through the Task Scheduler and it crashes once more.
I am running the scheduled task with highest privaledges and it operates on a server on our network, I am checking the connection is available etc. I have domain admin and cannot see for the life of me what is causing this to happen.
Any help would be great!
Which account do it run on? NETWORK_SERVICE would be a good idea.
Exception details would also help.