Cannot connect when SignalR is hosted in Windows Service RRS feed

  • Question

  • User-1128587996 posted


    I built a SignalR host in a Console application. You need to start this 'server' as Administrator, but this works great.

    Now I moved the same logic to a Windows Service project. Everything seems to work fine, but I'm unable to connect from a (WinForms) client. The service starts, it starts the same SignalR web app and it looks fine. 

    I configured it on: 

    and when browsing with Chrome to this address, I get the message as below. That's the same message when I get when the Console app is running.

    Protocol error: Unknown transport.

    My service is started under the LocalSystem account. I already tried to set the interactive with desktop flag. It seems the SignalR host  is running, because otherwise you get an other error message (not found). When I start then my Console application, it fails, because the port is in use. Everything seems to be okay, but I'm not able to connect with a client.

    Anyone an idea? What's the difference between a Console app or Windows Service as host?

    Thanks in advance!

    André Obelink

    Monday, November 20, 2017 4:45 PM

All replies