I have a problem with SignalR LongPolling. After an issue with the group management in long polling that has been solved (I think) thanks to the workaround @dfowler told me, things stop working eventually because the polling stop working.
The app works well, but after a some time of inactivity, this start to happen:
HTTP Error 404.15 - Not Found The request filtering module is configured to deny a request where the query string is too long.
I can see that the URL is in fact very long:
The reconnection also fails, and then it disconnects:
[17:38:08 GMT+0000 (GMT Standard Time)] SignalR: Couldn't reconnect within the configured timeout (30000ms), disconnecting. jquery.signalR-2.0.1.js:77
[17:38:08 GMT+0000 (GMT Standard Time)] SignalR: Stopping connection.
If I refresh the page, all start to work well again. Then when I check a the poll request, the URL looks much shorter:
Is there any reason why the URL could grow that way?
Thanks.
PS: There is a formatting issue in this post. I don't know where =1390238814537">
and =1390239846281">
at the beginning of the pasted URLs are coming from.
As @halter73 pointed out, the problem are the groups.
This is being caused by the groupsToken which expands as you add the client to more groups.