-
Notifications
You must be signed in to change notification settings - Fork 95
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
ASP.Net "No server available" error #279
Comments
"No server available" indicates that your app server has trouble connecting to Azure service. You can enable tracing from the app server side with the following to see if any error throws.
A sample here: https://github.com/Azure/azure-signalr/blob/dev/samples/AspNet.ChatSample/AspNet.ChatSample.SelfHostServer/Startup.cs#L19 If you are local debugging the server side, you can also uncheck "Just My Code" and break when any CLR exception throws: |
Thanks for the quick reply. I've debugged locally and caught some exceptions when opening the webpage with the SignalR client. Here are the ones I caught: System.Security.Authentication.AuthenticationException: "A call to SSPI failed, see inner exception." System.ObjectDisposedException: 'Safe handle has been closed' System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.' System.Net.WebSockets.WebSocketException: 'Unable to connect to the remote server' The AuthenciationException is the one that occurs the most frequently. Does this help shed any light on the issue? |
Azure Service only support TLS1.2 for security concerns.
|
Thank! I tried that myself and it has solved it. I thought ..NET 4.6 defaulted to TLS 1.2, so I got that wrong. Thanks! |
does this switch the protocol type system wide? if so, is there a way to limit this switch just for signalr? |
targeting .net 4.7 in web.config also works and doesn't require forcing TLS 1.2 in code (provided that it can be negotiated) |
I have a simple SignalR setup on ASP.Net (.Net 4.6.2). When using a local SignalR server, my JS client connects without issue.
However, when I change from app.MapSignalR() to app.MapAzureSignalR(GetType().FullName) I can't seem to get my JS client connected at all. Here is a screenshot of the output from console.
I'm not doing anything more than trying to connect.
I'm using Microsoft.AspNet.SignalR 2.4.0-preview2-20181018-02
How can I fix this issue?
The text was updated successfully, but these errors were encountered: