I’m having an issue where I can concisely prove that task scheduler is running an old version of a supporting DLL my executable uses.
Here’s what I have:
A C# console app that just calls into a manager function in a class library (more specifically, it’s the data access layer). That class library imports yet another class library for “core” functions shared across multiple applications.
If I run the application from windows explorer, it runs fine.
When it gets run from the task scheduler, it appears to run at least a version back. Literally three core functions are functioning as they did a version back ago.
There’s no way this can happen in Windows. Turns out another server that I wasn’t aware of had these scheduled tasks scheduled to happen one minute before my task would execute, and this server wasn’t running the latest version of the application.
So, if this happens to you: check ALL servers that you are hosting before going crazy.