PDA

View Full Version : Lỗi debug trong windows service cần được sự giúp đỡ



rungxanh252000
20-04-2009, 09:14
Windows Service Start Failure Cannot start service from the command line or 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.

mình đang làm một app nhỏ windows service tren visual studio 2008 khi minh debug thì gặp lỗi trên, mong các bạn tìm ra phương pháp giải quyết giúp mình với. mình cảm ơn nhiều.

huonghx
20-04-2009, 22:29
tham khảo
http://www.developer.com/net/vb/article.php/3080731
anh gút gồ ngay bên cạnh mà ko hỏi

longaptech
22-04-2009, 16:00
bạn đăng ký WindowService chưa ? dùng Visual Studio Tools > Visual Studio 2005 Command Prompt ma đăng ký. vào đó gõ installutil D://tên service.exe đó là mình ví dụ bạn đẻ file service của bạn ở ngay ổ D. sau khi làm xong bạn vào Control Panel > Admintrative Tool > Service tìm tên service đã đăng ký rùi start nó. sau đó ra chạy lai client xem.