Unable to load assembly with windows service

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-03-14T20:47:45Z Indexed on 2010/03/14 20:55 UTC
Read the original article Hit count: 367

Filed under:
|
|

I have created a windows service in C# VS2008 that uses a reference to an external class library to wrote. I have added the reference to it in VS2008. When I run start the service it throws an exception when trying to access the external DLL:

Could not load file or assembly 'vcribAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

The DLL is in the same directory as the service.exe file. Is there something special that I need to do for windows services like putting the DLL in another directory?

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-services