What is the appdomain's base directory that the window service is running
in, and what is the location of the assembly you are loading using LoadFrom?
If the assembly is not located in the same directory, or a subdirectory
below the appbase, then the runtime cannot automatically resolve the
reference.
You can subscribe to the appdomain's AssemblyResolve event to manually
locate dependencies for the runtime.
> Hi,
>
[quoted text clipped - 18 lines]
>
> Chris Lewis
Chris Lewis - 29 Oct 2004 08:54 GMT
Thanks a lot David, this worked for me!
Chris
> What is the appdomain's base directory that the window service is running
> in, and what is the location of the assembly you are loading using LoadFrom?
[quoted text clipped - 27 lines]
> >
> > Chris Lewis
Hello,
Try to add the path via AppDomain.CurrentDomain.AppendPrivatePath().. that
should help.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/?page=products)
> Hi,
>
[quoted text clipped - 15 lines]
>
> Chris Lewis
Chris Lewis - 29 Oct 2004 08:30 GMT
Hi Henning,
I had already tried this - and I tried it again after your post, but to no
avail - I get the same error?
Chris
> Hello,
>
[quoted text clipped - 30 lines]
> >
> > Chris Lewis
David Levine - 29 Oct 2004 09:24 GMT
That will work if the assembly is located in a subdirectory below the
application base directory. Also, that must be specified as a relative path
, not an absolute path, and it is relative to the application base
directory.
> Hello,
>
[quoted text clipped - 32 lines]
>>
>> Chris Lewis