Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signalr Client version 1.5, server version undefined

I have signalR v2 installed and referenced on my page

<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script src="~/Scripts/jquery.signalR-2.2.0.min.js"></script>
<script src="~/signalr/hubs"></script>

But somewhy I get error message in browser debugger:

Error: You are using a version of the client that isn't compatible with the server. Client version 1.5, server version undefined.

I guess the problem is that client appears to be 1.5 version. There are other packages installed in the project such as Autofac SignalR 2 Integration but I guess they do not influence on client version.

like image 501
ProgBlogger Avatar asked Mar 25 '15 09:03

ProgBlogger


1 Answers

The problem occurred because all the strings in camel case were transferred to snake case by the component of another developer. The version of the signalR was stored in one of the variables with changed case and script didn't manage to find out the version cuz the variable with version was undefined. Hope this'll help someone.

like image 159
ProgBlogger Avatar answered Sep 22 '22 15:09

ProgBlogger