Windows service only gets called when Visual Studio is attached to process

Posted by 64th on Stack Overflow See other posts from Stack Overflow or by 64th
Published on 2010-04-30T16:30:11Z Indexed on 2010/04/30 16:37 UTC
Read the original article Hit count: 156

I've created a simple windows service in C# using Visual Studio 2010. It uses a TcpListener and socket to listen for messages on a given port. This worked absolutely perfectly when my laptop had Windows Vista on it. However, since upgrading to Windows 7 and re-installing my service it only responds if I'm attached to the process and debugging in Visual Studio 2010 - at which time it behaves as expected.

I've tried running the service under my (administrator) credentials and setting the exe to run as administrator. I've also checked "Allow service to interact with desktop" when it was running under the Local System account.

I'm testing using both a test console app and an Adobe Air application - both with the same results.

Are there some specific permissions that I need to allow the service to be called?

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-7