Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Updating hosted service

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 09-19-2006   #1 (permalink)
=?Utf-8?B?dnJhZGVuYnVyZw==?=
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 SpecsSystem Spec
Old 10-15-2006   #2 (permalink)
Claus Konrad
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 SpecsSystem Spec
 

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


Update your Vista Drivers Update Your Vista Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008