Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hed guys, I recently upgrade my application from .Net 3.5 to 4.5. The application runs fine but when I try to install signalR and create a hub class I get the following error SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/hubs'></script>." I have tried everything I can think of but nothing is working maybe someone can spot what I am doing wrong.

Header.Master
HTML
<script src="Scripts/json2.js"></script>
<script src="Scripts/jquery-1.6.4.js"></script>
<script src="Scripts/jquery.signalR-1.0.1.js"></script>
<script src="Scripts/jquery-ui-1.8.20.js"></script>
<script src="/signalr/hubs"></script>

<script type="text/javascript">
       $(function ()
       {
           var hub = $.connection.clientNotificationHub;

           $.connection.hub.start().done(function () {
               alert("success");
           });

       });
   </script>


Global.asax.vb
VB
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
      RouteTable.Routes.MapHubs()
  End Sub


I have upgraded the App pools aswell so if anyone can point me in the right direction id really apreciate it. Thanks guys


.
Posted
Comments
[no name] 9-May-13 15:40pm    
use ~/signalr/hubs
Tom123456789a 10-Oct-13 0:21am    
I have the same problem. Did you find a solution?
frostcox 10-May-13 3:53am    
Hey dude, still doesn't work:(
[no name] 10-May-13 10:32am    
did you try this one ?
http://stackoverflow.com/questions/12624615/signalr-hubs-not-loading-in-asp-net-mvc4-throws-404
Malikdanish 10-Jun-18 14:15pm    
issue is with your project not with signalR try to create another project and repeat the steps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900