File in use error

I'm getting a file in use error during the update. File: wyUpdate.exe

I thought this might be since I included wyUpdate.exe in the update, so I removed this file in the update and uploaded the update to the server again. Still get this error.

Now my app update will not reset itself. When I open my app, and then using a menu item, open my update dialog, which calls ForceCheckForUpdate, the app goes into it's shutdown sequence (this is a series of a couple of dialogs) and crashes. When I dismiss microsoft's (typically useless) crash popup, the wyupdate update dialog appears. The update then fails on the file in use error above. It's as if ForceCheckForUpdate remembers there is a pending update, and calls Application.Exit.

After each crash this is in the event log:

EventType clr20r3, P1 myapp.exe, P2 5.0.4155.29060, P3 4dd45179, P4 mscorlib, P5 2.0.0.0, P6 4d352e63, P7 170c, P8 22, P9 system.invalidoperationexception, P10 NIL.

This is my first go at using this software and I apologize in advance for any mistakes.

, edited

Did you rebuild your update? Did you re-upload both the *.wys and *.wyu files?

Did you rebuild your update? Did you re-upload both the *.wys and *.wyu files?

I rebuilt the update and uploaded it. There is nothing in your walkthrough on uploading the wys and wyu files and I assume this is automatically part of the upload? Correct?

The AutomaticUpdater caches files. You can delete the cache by deleting all the files in these 2 folders:

%appdata%\wyUpdate AU%userprofile%\wc

Regarding the crash, try running your app in your debugger. At which line does it crash?