Windows Service FilenotFound exception when accessing a type from an assemble

  • Thread starter Thread starter ropo
  • Start date Start date
R

ropo

I have a class library used by a windows service executable, both
binaries and dependancies are in one bin directory located on c:.

1) I can run a test app on my class library without failure
2) My service runs, but if I reference anything in the class library it
fails with a FileNotFound exception e.g. MyClassLib.MyClass A = null;
will cause the exception
3) my service runs under the system account
4) using Window XP SP2
5) My class library is a C++.Net Assembly that wrapps a number of
unmanaged MFC and Win32 DLLs that are in my bin directory.
6) If I call System.Reflection.Assembly.LoadFile from within the
service my class library loads ok.

Any ideas as to how I might solve this one?
 
Got fuslogvw.exe to work by setting up a custon log path. Unfornatley
it didn't help much as all binding where successful.
 
Back
Top