title: Method cannot be resolved in SignalR 1.0 hub in C#
body: <p>I'm struggling at connecting my C# code to an existing SignalR hub. This hub is created in SignalR 1.0<br>
  I have a pretty straight forward situation. The hub is defined as follows:</p>
  
  <pre><code>using System; 
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Microsoft.AspNet.SignalR.Hubs;    
  
  namespace POC.SignalR.WebHost.Hubs 
  {
          [HubName("SignalRHub")]
          public class SignalRHub : Hub
          {
              /// &lt;summary&gt;
              /// Joins the group.
              /// &lt;/summary&gt;
              /// &lt;param name="groupname"&gt;The groupname.&lt;/param&gt;
              public void JoinGroup(string groupname)
              {
                  Groups.Add(Context.ConnectionId, groupname);
                  Clients.OthersInGroup(groupname).newMemberMessage(Context.ConnectionId);
                  Clients.Caller.JoinedGroup(groupname);  
              }
  </code></pre>
  
  <p>When I connect to the hub using Javascript it all works like a charm.</p>
  
  <pre><code>// Check if url exists and give it a default value if that's the case.
  if (!url) { url = 'http://www.someurl.com/signalr'; }
  
  conn = $.connection.SignalRHub;
  var currentGroupName = '';
  if (typeof groupName == "string") currentGroupName = groupName;
  
  $.connection.hub.url = url;
  $.connection.hub.logging = true;
  
  // Start the connection
  $.connection.hub.start().done(function () {
      verbosemsg(conn.connection.state);
      conn.server.connectionName();// init to get my connectioID   
      verbosemsg('Connection made now joining group:' + currentGroupName);
      if (currentGroupName != '') conn.server.joinGroup(currentGroupName);
  });     
  </code></pre>
  
  <p>But when I connect to the hub in C# using the following code, I keep running into a "<strong>'JoinGroup' method could not be resolved.</strong>" error.
  The hubConnection is in "connected" state and seems correct.</p>
  
  <pre><code>HubConnection hubConnection = new HubConnection("http://www.someurl.com/signalr", false);
  IHubProxy hubProxy = hubConnection.CreateHubProxy("SignalRHub");
  hubConnection.Start().Wait();
  hubProxy.Invoke("JoinGroup", hubConnection.ConnectionId, "SignalRChatRoom").Wait();
  </code></pre>
  
  <p>As far as I can see I've implemented my code similar as found on this example:
  <a href="http://www.asp.net/signalr/overview/older-versions/signalr-1x-hubs-api-guide-net-client#establishconnection" rel="nofollow">http://www.asp.net/signalr/overview/older-versions/signalr-1x-hubs-api-guide-net-client#establishconnection</a>
  There must be something I've overlooked but I cannot figure it out. It would be great if someone can point me in the right direction.</p>
  
  <p>Thx.</p>