I'm attempting to dynamically load an assembly from a windows service.
However, i'm having problems when the service runs... he is the line of
code that causes the error:
dim loAssembly as Assembly = Assembly.LoadFrom("SomeDLL.dll")
I have a test windows Form that i use when developing services... this
way i can run the service in debug mode. If i run as a windows form,
the code executes fine and the assembly loads. However, when i compile
and run as a windows service, the above line of code does not execute.
I'm guessing that while a windows service, the app is running in a
different context -- but i'm not sure. Any help would be appreciated.
Thanks!