Mr_Green - divami.com Mr_Green - divami.com - 3 years ago 180
ASP.NET (C#) Question

Error in running example application, Uncaught Error: SignalR: jQuery not found

I am new to asp.net. I am learning SignalR, going through this

. I have created everything correctly as mentioned in the tutorial. Now when I ran the Console Application, ERROR --> "One or more errors occurred." at
hubConnection.Start().Wait();
.(the console application is still running). Anyhow I tried even running the Web application which is not giving any error but the button
broadcast
doesnt do any action(I think it should). When I checked the code in Web application, I saw that one of the script source has green scribbles. Here is the Image.

enter image description here

Please explain what I am doing wrong..

Edit: I am using ASP.NET Development server.

Edit2: The errors I get in Google Chrome Console are:

Uncaught Error: SignalR: jQuery not found. Please ensure jQuery is referenced before the SignalR.js file. jquery.signalR-1.0.0-alpha2.min.js:10
Uncaught TypeError: Cannot read property 'signalR' of undefined hubs:17
Uncaught ReferenceError: $ is not defined


Answer: I just added reference of jQuery in my code above all the scripts and the "file not found" error is careless because it is running on server side.

The Link has also been updated with reference to jQuery

Answer Source

The error message describes fully what the problem is:

Uncaught Error: SignalR: jQuery not found. Please ensure jQuery is referenced before the SignalR.js file.

You need to include jQuery.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download