Share via


Error: SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/hubs.

Question

Wednesday, May 8, 2013 8:14 AM

Hi,

i have this issue only in IE(my version is 9). But in network, i can see that signalr.js loaded first and then hub class.
And this same issue in one page of firefox, when other pages working fine in Firefox.
I have added only one jquery(1.8.2) in my page. 

All replies (1)

Friday, May 10, 2013 5:47 PM

You should put your js file something like this order

<!--Reference the jQuery library. -->
    <script src="/Scripts/jquery-1.8.2.min.js"></script>
    <script src="Scripts/json2.js"></script>
    <!--Reference the SignalR library. -->
    <script src="/Scripts/jquery.signalR-1.0.0.js"></script>
    <!--Reference the autogenerated SignalR hub script. -->
    <script src="/signalr/hubs"></script>