|I have a simple SignalR app that runs fine when self hosted or hosted in VS2015's IIS.
When I attempt to host it in full IIS I don't get very far. Here's my connect code:
public void Connect()
_connection = new HubConnection(ServerUri);
_connection.TraceLevel = TraceLevels.All;
_connection.TraceWriter = Console.Out;
_hubProxy = _connection.CreateHubProxy(HUB_NAME);
_connection.Error += _connection_Error;
_connection.StateChanged += _connection_StateChanged;
catch (Exception e)
_logger.Error("*** Connection failed", e);
I get no error messages or exceptions. What I DO get is some output in the Console Window:
23:57:41.8538683 - null - ChangeState(Disconnected, Connecting)
23:57:42.0208850 - null - Disconnected
23:57:42.0208850 - null - Transport.Dispose()
23:57:42.0218851 - null - Closed
Again, with no exception or error info I can only assume that it's not finding the hub. The _connection_StateChanged event is called twice - first with "Connecting" then immediately with "Disconnected." And that's as far as I get.
At this point I'm reaching out to see of anyone know what these messages mean or what I'm doing wrong.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.