title: Signalr remote connection error 404
body: <p>I try to use a signalR 2 in my WebAPI application. </p>
  
  <p>Startup class</p>
  
  <pre><code>public class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          app.MapSignalR();
  
      }
  }
  </code></pre>
  
  <p>Hub class: </p>
  
  <pre><code>public class ChatHub : Hub
  {
      public Task Join(string groupname)
      {
        ....
      }
  
  
      public Task Send(string groupname, string message)
      {
          ....
      }
  
      public Task Leave(string groupname)
      {
          ...
      }
  }
  </code></pre>
  
  <p>And create a simple console application to use it.</p>
  
  <pre><code>        static void Main(string[] args)
          {
              var hubConnection = new HubConnection("http://olegvolkvo-001-site2.atempurl.com/");
              var hubProxy = hubConnection.CreateHubProxy("ChatHub");
              hubConnection.Start().Wait();
              hubProxy.Invoke("Join", 1.ToString());
              Console.ReadLine();
  }
  </code></pre>
  
  <p>In localhost it works greate. But then I publish WebAPI project on remote hosting smarterasp.net. 
  And now the client application failed with exception: AggregateException</p>
  
  <pre><code>{"StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:\r\n{\r\n  Access-Control-Allow-Origin: *\r\n  Access-Control-Allow-Headers: Content-Type\r\n  Cache-Control: private\r\n  Date: Sun, 27 Nov 2016 22:35:22 GMT\r\n  Server: Microsoft-IIS/8.5\r\n  X-Powered-By: ASP.NET\r\n  Content-Length: 5016\r\n  Content-Type: text/html; charset=utf-8\r\n}"}.
  </code></pre>
  
  <p>I try to find some information about this, but I still have this error. And I still don't understand how could it be, that in localhost everything is all right, but on remote connection it failes. 
  Thanks for any advice</p>