The execution does not even get to $.connection.hub.logging = true;...... !?
<scriptsrc="Scripts/jquery-1.6.4.min.js"></script><!--Reference the SignalR library. --><scriptsrc="Scripts/jquery.signalR-1.0.0-rc2.js"></script><!--Reference the autogenerated SignalR hub script. --><scriptsrc="signalr/hubs"></script><!--Add script to update the page and send messages.--><scripttype="text/javascript">
$.connection.hub.logging = true;
$(function () {
// Declare a proxy to reference the hub. var chat = $.connection.chatHub;
// Create a function that the hub can call to broadcast messages.
nsulikow
0 Points
3 Posts
Simple chat example works in one machine but not in the other
Jan 21, 2013 12:15 AM|LINK
Both machines with .NET 4, both with VS 2012, both configured to use IIS Express and IE9 / IE10
In one machine the browser has a perpetual spinning wheel.. and the chat never activates.
In the other it works fine.
davidfowl
Contributor
2699 Points
611 Posts
Microsoft
Re: Simple chat example works in one machine but not in the other
Jan 21, 2013 02:57 AM|LINK
Turn logging on client side and look at the javascript console to see if there's any issues:
$.connection.hub.logging = true;
Senior SDE, ASP.NET Team, Microsoft
nsulikow
0 Points
3 Posts
Re: Simple chat example works in one machine but not in the other
Jan 21, 2013 07:29 AM|LINK
The execution does not even get to $.connection.hub.logging = true;...... !?pranav rasto...
Member
286 Points
52 Posts
Re: Simple chat example works in one machine but not in the other
Jan 21, 2013 09:18 PM|LINK
are any of the scripts ever loaded?
make sure you have https://github.com/SignalR/SignalR/wiki/Faq to make sure you have hubs registered correctly
nsulikow
0 Points
3 Posts
Re: Simple chat example works in one machine but not in the other
Jan 21, 2013 11:57 PM|LINK
After waiting for a looong time (I think over an hour), it gets to the line
chat.client.broadcastMessage = function (name, message) {and complains that chat is null.
But the same exact code works correctly in another machine. I don't know...