Problem accessing assembly from Windows Service

  • Thread starter Thread starter Jim Cooper
  • Start date Start date
J

Jim Cooper

I've written a Windows service which uses some code I want to share with
a WinForms app. The code works fine if it is included in the service
project. If I move the code into a new project in the solution, then the
service fails as soon as the method that uses the new assembly is
entered. The exception handler and debugger both fail to track any
problem, BTW

Can anyone tell me why this is? I'm not using strong names, BTW.

Cheers,
Jim Cooper

_______________________________________________

Jim Cooper (e-mail address removed)
Falafel Software http://www.falafelsoft.co.uk
_______________________________________________
 
You will need to place the project output which will be a DLL needs to be in
the GAC.
 
You will need to place the project output which will be a DLL needs to be in
the GAC.

Thankfully that turns out not to be necessary (there is really no need
for my assembly to be in the GAC). I did strongly name it, copy it to
the same directory as the service, make the service project reference
that copy and made "Copy local" false and it worked. I'm continuing the
experiment to see how much of that process I don't need to do. Working
with services is very flaky in VS.


Cheers,
Jim Cooper

_______________________________________________

Jim Cooper (e-mail address removed)
Falafel Software http://www.falafelsoft.co.uk
_______________________________________________
 
Back
Top