-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LongPolling broken on ASP.NET 4.5 #496
Comments
Try looking at the requests in fiddler and see if they even make it to the server. |
Silverlight will use the browser network stack by default (mine is IE9). This was working fine in Silverlight a couple of releases ago (some time last week). They get to the server but the server is not able to call back to the client for the second and third invokes. The first works fine. |
Just noticed in fiddler I am getting the below errors: POST /signalr/?transport=longPolling&connectionId=4ffb3cb2-a10a-4d9e-8173-a6349be70c89&messageId=2&connectionData=[{"Name":"Chat"}] HTTP/1.1 <title>Object reference not set to an instance of an object.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } } </style>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.]
POST /signalr/reconnect?transport=longPolling&connectionId=4ffb3cb2-a10a-4d9e-8173-a6349be70c89&messageId=2&connectionData=[{"Name":"Chat"}] HTTP/1.1 <title>Object reference not set to an instance of an object.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } } </style>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.]
|
Try using IIS express. |
I am using IIS express. Can you not reproduce it? On 29 Jun 2012, at 10:17, David Fowler
|
Even tried IIS (windows 7) and no luck with that either. This has to be easily reproducible. Don't think I am doing anything wrong. I have checked a number of times. |
where is your repo ? |
It was only a few of lines of code to repro which I posted above. If On 30 Jun 2012, at 03:29,
|
I'll try to repro and make a fix for 0.5.3 when I do. VS2012 on a .NET 4.0 application or .NET 4.5? |
VS2012 with silverlight 4. It works using .net 4 application. Thanks On 1 Jul 2012, at 00:48, David Fowler
|
It's fixed in master |
Working perfectly now. Thanks a lot. On 1 July 2012 18:02, David Fowler <
Best Regards, |
I saw this happen to me as well in 0.5.2 so I am glad a fix is on the way. I am using VS 2012 RC and .NET 4.5. I first noticed it when one of my Firefox browsers (v 13) decided to connect via Long polling instead of serverSentEvents. Not sure why it auto connected as long polling but it did. So of course I have to ask.... Any idea when 0.5.3 will be release ? :) |
When it's released. If you need it now build from source. Sent from my Windows Phone Reply to this email directly or view it on GitHub: |
No problem I understand. Like they say it never hurts to ask. |
0.5.3 fixed this for me as well. It took me a while to find this thread when I searched on "signalr network error 500", so adding that tag here. :) |
Using silverlight client version 0.5.2 and the code below invoke is only fired one time. This same code works fine using the standard .net client. This started happening a couple of versions ago.
Thanks,
Nabil
The text was updated successfully, but these errors were encountered: