SignalR LongPolling:请求过滤模块配置为拒绝查询字符串太长的请求

时间:2014-01-20 17:50:10

标签: iis signalr long-polling

我遇到SignalR LongPolling的问题。在问题with the group management in long polling已经解决之后(我认为)由于@dfowler告诉我的解决方法,事情最终停止工作,因为轮询停止工作。

该应用程序运行良好,但经过一段时间不活动后,这种情况开始发生:

  

HTTP错误404.15 - 未找到请求过滤模块是   配置为拒绝查询字符串太长的请求。

我可以看到网址实际上非常长:

  

https://localhost/MyTestWeb1.PriceIsRight.Web/updates/poll?transport=longPolling&connectionToken=Wi8JkSIcjGdvYVBxzJ3CZclkwYL7d2peZzobOJABzsPzirhKHgTI2K%2BQh%2FNbfGv3L3iGoIhp8HxbZnptzuynccLQq9dbaHIHy0OlshLGHf%2Be%2BxPxV%2F3NoP1XNRVLtSJs&groupsToken=%2F6rKIYLag7J94szTAkdB2z9201%2BQ3eK5y9HjYwSBmTAp77FO6%2FYf5TcnzcYX2mieQ%2FN16z7A9FL8jn%2Bhbz8K5q%2BAjKE5z%2BqixE6oGO9JcsJcOzWYSDMG25Y96Bw6AyoRFEfBjWC0k1xsaTIVArKoWvw8rvqua7R8bPX3UQcvhGxa1ODABLtPch2NW5QGWbRnomPnqJwm9cO9elfQeh5Yt9Toneu8f4JFSXcub0uH78RgGIoc0bIABsAIPJa5lBOrIwAFe8LZKKx7FWRPzssql6GBN9VJ7KZW4sEEpPS4OpIMgcLlZ4UbpfOLbb%2F%2BBRlIvGRIS4PXRQufozELnh7E3JkWNH7tCJy2fcuc8nOKA3w1cyQU9RVlOf7Y6zyY4GNuuIbkEmq8SN9xfrF%2B0oTQ5FY%2Fq%2BdqPdm2heVBY6pH0liKwMjRo%2BTEtiU9zzTjXFsXhCdnGjdNeVzONKIpXN1q1Xhu%2FS7JLVYOZN2ITbD9BUIH3q%2FRPgKkevZSpInUXa1CDueNlR1iWJYP7wJKY%2FfheR%2BORzwu%2BmK1RwgGTZkG8rnT%2F1jIeu23SBBURajqcXPgw6BQJuAL9q8JQx8Z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Pmk%2FQUkR30oNl9TB1hIm7q6qVskCwCaPSN5m04Thj2MAIzHGuG18zbHxB6lqBwbXM9FyKmFeAiVNPhY3WTvC5wPEatIMzXBNJ4S6m5rUppcoQLFseBVPRYB%2BfMRqDaU%2FRbWdWxlPHsGkQxVq&messageId=d-B836F05A-B%2C52%7Cb%2CC%7Cc%2C0%7Cf%2C3A%7Cg%2C38%7Ch%2C32%7Ci%2C36%7Cj%2C36%7Ck%2C38%7Cl%2C38%7Cm%2C3E%7Cn%2C34%7Co%2C3E%7Cp%2C0&param=true&tid=10&_=1390238814537

重新连接也失败,然后断开连接:

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

如果我刷新页面,所有内容都会再次开始运行。然后,当我检查轮询请求时,URL看起来要短得多:

  

https://localhost/MyTestWeb1.PriceIsRight.Web/updates/poll?transport=longPolling&connectionToken=z4yGjBDaK8hh9eOfWPxXy4%2BpkC%2BDTCtZjlsi%2BDM0Z3JJofNE0E7BX%2B2QtIn0n0mzCsXyk0Tna3%2FCYRaKoSliA6uFNraONdleoKJgoq1chUZSRf5qHs5RazfXrQFw6ifQ&groupsToken=z8QTCuB6CWlSFs76g62l5odbEtSW3Rv1a46podyAeNBRjlIrCDNcgEDoRhPpiOE1aRoOiy7x%2B3wFicWhHhK4FCTKKk8We%2BzIvnERITIhstdJ3e5yOt8veR2aWcLhyOsPf8i5zoeRLwrizj0QZlplP1GgmbjO9wFJG4ySe2TKddGRFfFE4Qfy%2F03OBD4sL8mOC8kBMAWNE6oTvaJiJJ3QMKvtUBjFeg%2BorNvl26EwaG5zE5laJZkwTha7BHHnysOPvxFXFKE6yVoad9zifiHQDj%2Fp8TYQ3DbSFKsaSynyEYlU4YCg4TzgyrXGvhUPGZ4EYlTwBa7RoPsqOwspeIziDEBk4OW9sb8LtTdOXJXTVZXFoZ34XOdgqcZVHHCJvESczZE5AmsLoCts4Xq58ld6f9PDHdxmtTUkAEj0CcS9Bqg%3D&messageId=d-B836F05A-q%2CA%7Cr%2C3%7Cs%2C0%7Cv%2C45%7Cw%2C9&param=true&tid=0&_=1390239846281

网址有可能以这种方式增长吗?

感谢。

PS:这篇文章中存在格式问题。我不知道粘贴网址开头的=1390238814537">=1390239846281">来自哪里。

1 个答案:

答案 0 :(得分:0)

正如@ halter73所指出的那样,问题是群体。

  

这是由groupsToken引起的,当你添加时会扩展   客户到更多的团队。