VB.NET - Why windows service project takes longer time to load?

Asked By Anish V on 08-Aug-12 12:55 AM

I am working on a windows service project. It takes longer time to load when we open it in the VS environment. Also, some times I'm getting an error saying that the .exe is being used by another process. This appears even if I open the project directly and try to debug the project.

See my error message:

Error 1 Unable to write to output file 'D:\Seat Utilization Project\SMSMailer\SMSMailer\obj\Debug\SMSMailer.exe': The process cannot access the file because it is being used by another process.

Expecting a help.
Thanks & Regards,
Peter Bromberg replied to Anish V on 08-Aug-12 08:22 AM
Review this article:  http://www.eggheadcafe.com/articles/20060104.asp 

It shows several techniques on how to build and be able to debug a Windows Service in Visual Studio.
Anish V replied to Peter Bromberg on 09-Aug-12 12:31 AM
Thanks for your reply. But, I'm not able to debug the service and some times its very slow. Sometimes its showing the same error message like that '.exe is used by another process.' I'm a newbie of windows service and didn't get the solution. Please help.