Skip to content

500 response received when running basic hubs sample on IE 10 when in IE 9 compatibility mode #561

Closed
JamesHay opened this Issue Jul 25, 2012 · 1 comment

2 participants

@JamesHay

I have a very basic chat application (very similar to the examples) that I'm running on a Windows 8 machine to test the websockets functionality. When I run my application in IE 10 and drop down to IE 9 or below in the compatibility mode I get a 500 for the request:

GET http://local.signalr.akqa.com/signalr?transport=longPolling&connectionId=3ccb2e24-dec5-448d-b16c-e00f46230176&connectionData=%5B%7B%22name%22%3A%22ChatHub%22%7D%5D&messageId=30&tid=8
500 Internal Server Error (text/html)

And subsequent polled requests:

GET http://local.signalr.akqa.com/signalr/reconnect?transport=longPolling&connectionId=3ccb2e24-dec5-448d-b16c-e00f46230176&connectionData=%5B%7B%22name%22%3A%22ChatHub%22%7D%5D&messageId=30&tid=9
500 Internal Server Error (text/html)

The response for both contain the stack trace

[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.HttpContext.GetWebSocketInitStatus() +251
System.Web.HttpContextWrapper.get_IsWebSocketRequest() +46
SignalR.Hosting.AspNet.AspNetResponse.get_IsClientConnected() +48
SignalR.Transports.TransportHeartBeat.AddConnection(ITrackingConnection connection) +280
SignalR.Transports.LongPollingTransport.ProcessReceiveRequest(ITransportConnection connection, Action postReceive) +38
SignalR.TaskAsyncHelper.Interleave(Func`3 before, Func`1 after, T arg, TaskCompletionSource`1 tcs) +181
SignalR.Transports.LongPollingTransport.ProcessRequest(ITransportConnection connection) +295
SignalR.PersistentConnection.ProcessRequestAsync(HostContext context) +892
SignalR.Hosting.AspNet.AspNetHandler.ProcessRequestAsync(HttpContextBase context) +866
System.Web.TaskAsyncHelper.BeginTask(Func`1 taskFunc, AsyncCallback callback, Object state) +50
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +12519412
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

My application runs as expected in IE 10 mode (using the web socket transport) and when ported to my Win 7 machine running in IE 9 (using long polling transport).

Thanks
James Hay

@davidfowl
SignalR member

Known issue with longpolling that has already been fixed. See #496

@davidfowl davidfowl closed this Jul 25, 2012
@davidfowl davidfowl was assigned Jul 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.