![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Updating hosted service I'm designing a windows service to run a self-hosted scenario of services that are loaded from GAC. I've created a "drop" folder, in which to drop the ..dll of the service I want to host. My service watches this folder and when a file has been dropped in, I install it into the GAC and load the ServiceHost. Now, my trouble is that when I'm "updating" an existing hosted service, it does not reflect the updated code that I've installed to the GAC, even though I close the ServiceHost and create a new service host from the GAC. It seems to cache to original service somewhere until I actually restart my Windows service. Is there a way to dynamically change the hosted service without having to restart the entire windows service, which will be hosting a variety of other hosted services which don't need to be restarted? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: Updating hosted service You are not using a fully qualified name when loading the dll? When loading the new dll using reflection, use the LoadFile over LoadFrom method as this gives you the correct assembly (presented a full path). Curiousity: why install it into the GAC? It would work just as well without all the hassle of interacting with the GAC. -- rgds. /Claus Konrad "vradenburg" wrote: > I'm designing a windows service to run a self-hosted scenario of services > that are loaded from GAC. I've created a "drop" folder, in which to drop the > .dll of the service I want to host. My service watches this folder and when a > file has been dropped in, I install it into the GAC and load the ServiceHost. > Now, my trouble is that when I'm "updating" an existing hosted service, it > does not reflect the updated code that I've installed to the GAC, even though > I close the ServiceHost and create a new service host from the GAC. It seems > to cache to original service somewhere until I actually restart my Windows > service. Is there a way to dynamically change the hosted service without > having to restart the entire windows service, which will be hosting a variety > of other hosted services which don't need to be restarted? |
My System Specs![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WCF service hosted in IIS | soworl | .NET General | 0 | 03-07-2008 10:56 AM |