Author: dotnetdev02 | Posted on: 4/27/2010 2:23:14 PM | Views : 1225

Ok. here's my problem.
I've got a service objects based application.  Initially, when trying to run from Visual Studio debugger, I got the error
 
Cannot start service from the command line or a debugger.   A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool, or the NET START command.
 
So I go ahead and install the service via installutil.exe, and start via the Administrative tool, and everything seems fine, except now the project fails to do a successful build from Visual Studio 2005, giving me the error:
C:\...\...\bin\Debug\ xxx.Utility.dll   cannot be copied to bin\Debug\xxx.Utility.dll.   The process cannot access the file bin\Debug\xxx.Utility.dll because it is being used by another process.
I've got the reference added in OK, and I'm darned if ...

Go to the complete details ...