title: SignalR Hub under .Net Framework 4.5 not found by client
body: <p>I'm trying to use SignalR to distribute status updates to listening clients.  However my clients are failing with "404 Not found" when attempting to start the connection.</p>
  
  <p>I've used <a href="https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc</a> as a starting point, although I want a C# client not a scripted web page.</p>
  
  <p>I've completed the following steps for the hub:</p>
  
  <ol>
  <li>AspNet Web Application (.Net Framework 4.5.2) added to solution</li>
  <li>SignalR Hub class added</li>
  <li>Owin start-up class added</li>
  <li>Application created under IIS
  virtual path /MyService
  .Net CLR version 4.0
  Integrated Managed Pipeline
  Service account identity</li>
  <li>Client created with connection code as shown</li>
  </ol>
  
  <p>For the most part my testing has revolved around trying the two different connection classes (Connection and HubConnection) using a variety of different URL.</p>
  
  <p>The server side uses a hub and Microsoft.AspNet.SignalR version 2.4.1 library</p>
  
  <pre><code>using Microsoft.AspNet.SignalR;
  
  namespace MyService
  {
      public class JobStatusHub : Hub
      {
          public void Send(string name, string message)
          {
              Clients.All.broadcastMessage(name, message);
          }
      }
  }
  
  using Microsoft.Owin;
  using Owin;
  
  [assembly: OwinStartup(typeof(MyService.Startup))]
  
  namespace MyService
  {
      public class Startup
      {
          public void Configuration(IAppBuilder app)
          {          
              app.MapSignalR();
          }
      }
  }
  </code></pre>
  
  <p>There will be two types of clients; message providers and message consumers.  So far I have only worked on a message source which contains the following code using Microsoft.AspNet.SignalR.Client version 2.4.1</p>
  
  <pre><code>        var connection = new Connection("http://localhost/MyService/signalr/");
          connection.Credentials = CredentialCache.DefaultCredentials;
         connection.Start().Wait();
  </code></pre>
  
  <p>And also</p>
  
  <pre><code>        var connection = new HubConnection("http://localhost/MyService/signalr");
          connection.Credentials = CredentialCache.DefaultCredentials;
          connection.Start().Wait();
  </code></pre>
  
  <p>I have tried a variety of connection strings</p>
  
  <p>Interesting aside: when I attempt to connect to a .Net CORE hub using  </p>
  
  <pre><code>        var connection = new Connection("http://localhost/MyCoreService/myHub");
          connection.Credentials = CredentialCache.DefaultCredentials;
          connection.Start().Wait();
  </code></pre>
  
  <p>The client appears to get further as it throws</p>
  
  <p>StatusCode: 405, ReasonPhrase: 'Method Not Allowed'</p>
  
  <p>Does anyone have any suggestions as to what might resolve this “404 Not found” error?  Or am I making a mistake not using a CORE service and hub (when I looked up the Method Not Allowed error the results suggested I couldn’t use a Framework 2.4.1 client with a CORE hub)?</p>