Cached Windows Service?

  • Thread starter Thread starter Matthias S.
  • Start date Start date
M

Matthias S.

hello,

i've written a windows service using .net framework 2.0 and c#. the
service runs already for a couple of month and everything is fine so
far. now i came to the point, that the service needs an update of the
exectutable and a classlibrary it depends on. funny thing is, even if
the service runs, i can replace the executables without getting any
error (you can't overrwrite a running executable, can you?). and once i
restart the service, its still the old version running.

the task manager shows me, that it is the correct executable that i'm
overwriting. but how come no changes happen? can it be, that the
executable is cached somewhere? how can i force a recaching?

any help is greatly appreceated.

matthias
--
 
thanks for your reply. yes, this is what i've done prior to posting
here ;)

i've stopped the service, overwritten the existing executables and
started the service again. when my service starts, it writes out the
executable versions to the eventlog. unfortunately, they are still the
same as before overwriting the files. so it seems, the executing
service exe and dll are still the same as before.

i now this might sound weird, but can it somehow be, that the
executable is cached somewhere? i've event tried to overwrite the
executable and restart the entire machine. but still no success.

thanks in advance.

matthias
 
Back
Top