We have a .Net 4.0 executable (MyProg.exe) and associated dlls that are deployed on a network share using XCopy. MyProg.exe and its dlls are all unsigned.
We have them installed on the network share so multiple users can use the same version of the program and to ease updating the program. This worked well for many of our customers for many years now.
For a recent customer, a folder on Windows Server 2012 Virtual Machine is shared as a network folder. Users run the program from another terminal server (Windows Server 2012).
When we updated the MyProg.exe (to version 2.0 from 1.0), the terminal server does not run the new executable until it is restarted. It continues to load version 1.0 even though that exe is no longer available. It appears to be running a cached version of MyProg.exe V1.0.
- The steps I tried:
- Close all instances of the program
- Copy the new MyProg.exe to the folder and overwrite the files (Updated exe version from 1.0 to 2.0)
- Verify version 2.0 of the MyProg.exe from its Properties >> Details page both from file-server and terminal server
- Verify that the MyProg.exe V2.0 runs when executed from the file-server using shortcut file (target: \\Server\MyProg\MyProg.exe)
- Run the same shortcut file (target: \\Server\MyProg\MyProg.exe) from terminal server and MyProg.exe V1.0 starts
- Rename \\Server\MyProg to \\Server\ MyProg1 and confirm that terminal server can not run the shortcut because that folder no longer exists.
- Create a new shortcut file (Traget: \\Server\MyProg1\MyProg.exe) and confirm that MyProg.exe V2.0 runs on the client
- Rename the folder \\Server\MyProg1 back to \\Server\MyProg and running the original shortcut file continues to load MyProg.exe V1.0 until the terminal server is restarted.
- I verified that offline files is disabled on terminal server
- I verified that I can not overwrite the MyProg.exe executable when the program is running on Terminal server.
What else can I check to troubleshoot why an older version of the executable is being executed even when that file no longer exists?