Skip to content

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

JamesHay opened this Issue Jul 25, 2012 · 1 comment

2 participants


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:

500 Internal Server Error (text/html)

And subsequent polled requests:

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).

James Hay

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.