Home All Groups Group Topic Archive Search About
Author
21 Dec 2006 6:54 PM
tshad
I have a Windows Service that runs on the same machine as my Web Server.

I am trying to figure out the best place to put the .exe.  Also, I want it
to access 2 dlls that are in my bin folder of one of my Web Applications.
If I am dealing with the .exe only, I can just put the .exe anywhere and
just point at it.  This isn't the case if I have dlls I want to access.

I wanted to find out where most people put these.

Thanks,

Tom

Author
22 Dec 2006 11:43 AM
Phill W.
tshad wrote:

> I have a Windows Service that runs on the same machine as my Web Server.
>
> I am trying to figure out the best place to put the .exe.  

The Service executable can go anywhere you want.

> Also, I want it to access 2 dlls that are in my bin folder of one of
> my Web Applications.

IMHO, shared DLLs like this, should be [Strongly Named and] loaded into
the Global Assembly Cache.  That way, /any/ process on the machine can
make use of it.

Alternatively, look at the dependentAssembly and codeBase entries
placable into App.Config (although this will be problematical for a
Windows Service which, generally has trouble finding its own Config.
file!   :-)

HTH,
    Phill  W.