c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
asp.net MVC

Uncaught Error: SignalR: Error loading hubs.Ensure your hubs reference is correct, e.g.<script src=’/signalr/js’></script>

| | JQuery , MVC

I am using singnalR hub in asp.net mvc 4 application. I got this following error it was cleared by referencing signalR hubs in the page.

Solution:

If you are using signalR in the page, make sure you need to reference the SignalR hub like this,

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

<script src="~/Scripts/jquery.signalR-2.2.1.min.js"></script> 

<script src="/signalr/hubs" type="text/javascript"></script>