المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Windows service using custom DLL



C# Programming
11-14-2009, 06:10 AM
Building a windows service which needs to call a custom DLL. When I try to start the service it gives me an error stating it can't find the DLL. Which makes since since I was unable to register the DLL using Regsvr32. If I take out the DLL the service works fine (minus functionality of custom DLL). If I create a project with the same functionality as the service everything works fine once I add a reference to the DLL. Is there anything I can do to get the windows service to work with this custom DLL?

Only thing I have found is to add the DLL to the System32 direcotry which I have done.