SignalR/SignalR — Issue #137: Setting transport to longPolling causes javascript to post connectionData twice
Author: MatsKarlsson
Created: 2012-01-15 22:11:07+00:00
State: open

starting the hub with:

```$.connection.hub.start({ transport: 'longPolling' });```

causes /signalr/connect to post connectionData twice in querystring.
Querystring parameters (from Chrome, same with IE9)

``` transport:longPolling
connectionId:1b15803a-cabb-4bd6-9792-f1b0b6ef5b09
connectionData:[{"name":"TestSignalR.Models.ChatHub","methods":["addMessage"]}]
connectionData:[{"name":"TestSignalR.Models.ChatHub","methods":["addMessage"]}]
```

throws an ArgumentException on
``` var clientHubInfo = _serializer.Deserialize>(data);
```

in ```HubDispatcher.CreateConnection```.
StackTrace:
``` at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
at SignalR.Hubs.HubDispatcher.CreateConnection(String connectionId, IEnumerable`1 groups, IRequest request) in D:\Proj\web\SignalR-GIT\SignalR\Hubs\HubDispatcher.cs:line 237
at SignalR.PersistentConnection.ProcessRequestAsync(HostContext context) in D:\Proj\web\SignalR-GIT\SignalR\PersistentConnection.cs:line 86
at SignalR.Hubs.HubDispatcher.ProcessRequestAsync(HostContext context) in D:\Proj\web\SignalR-GIT\SignalR\Hubs\HubDispatcher.cs:line 168
at SignalR.AspNet.AspNetHost.ProcessRequestAsync(HttpContextBase context) in d:\Proj\web\SignalR-GIT\SignalR.AspNet\AspNetHost.cs:line 40
at SignalR.AspNet.HttpTaskAsyncHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) in d:\Proj\web\SignalR-GIT\SignalR.AspNet\HttpTaskAsyncHandler.cs:line 23
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
```