release assembly dependencies while runtime

  • Thread starter Thread starter Mike Talbot
  • Start date Start date
M

Mike Talbot

Hello

I've got a windows service checking every x minutes
(Timer) on a job.

The job execution takes place in a separate assembly that
is called in the timer_elapsed event.

After the job has stopped the job-assembly is still loaded
somehow, means I can not exchange it while the service is
running (but no job execution takes place).

Is there any possibility to release a loaded assembly
while runtime, so that I could replace it whithout having
to stop the service?

Thanks for your help.

Mike Talbot
 
Mike,
Is there any possibility to release a loaded assembly
while runtime, so that I could replace it whithout having
to stop the service?

Only by unloading the entire appdomain it's loaded into, you can't
unload separate assemblies.



Mattias
 
Back
Top