SocketException preventing use of C# TCPListener in Windows Service
- by JoeGeeky
I have a Windows Service that does the following when started. When running via a Console application it works fine, but once I put in a Windows Service I get the below exception. Here is what I have tried so far:
Disabled the firewall, also tried adding explicit exclusions for the exe, port, and protocol
Checked CAS Policy Config, shows…