title: SignalR - "Connection was disconnected before invocation result was received" exception
body: <p>Developing my first SignalR prototype for demo to my company.  </p>
  
  <p>Issue I'm running into when attempting to call server function, 'GetChatUsers,' is that when I call the method via JS, I get an exception, 'Connection was disconnected before invocation result was received,' immediately after the server executes the 'Return' of the 'ChatUser. object.  </p>
  
  <p>I am using a synchronous call to the method, and I have stepped through the request to insure there is an IEnumerable object being returned.  Once the server actually passes off to the client, the client enters the '.fail' method of the method call and the exception is displayed.  I'm not sure why this is happening, but I have built the server side and clientside logic similar to how the request for 'GetAllStocks' is built here... <a href="http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server" rel="nofollow">http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server</a></p>
  
  <p>Here is my server code...</p>
  
  <pre><code>using System.Linq;
  using System.Web;
  using Microsoft.AspNet.SignalR;
  using Microsoft.AspNet.SignalR.Hubs;
  using UMARepository.DataModels;
  
  namespace UMAChatHub.Service
  {
      public class ChatHub : Hub
      {
          public IEnumerable&lt;ChatUsers&gt; GetChatUsers()
          {
              return UMARepository.Service.ChatService.GetChatUsers();
          } 
      }
  }
  </code></pre>
  
  <p>JS/JQuery...</p>
  
  <pre><code>var getChatUsers = function () {
      var umaChatHubProxy = $.connection.chatHub;
      umaChatHubProxy.connection.start().done(function() {
          umaChatHubProxy.server.getChatUsers().done(function(users) {
              $.each(users, function() {
                  console(this.firstName);
              });
          }).fail(function(ex) {
              console(ex.message);
          });
      });
  };
  </code></pre>