title: Signalr hubs 404 not found
body: <p>I'm trying to integrate Signalr into my web form project.</p>
  
  <p>First, added the references using nugget</p>
  
  <ul>
  <li>Microsoft.AspNet.SignalR.Client;</li>
  <li>Microsoft.AspNet.SignalR.Core;</li>
  <li>Microsoft.AspNet.SignalR.System.Web;</li>
  <li>Microsoft.Owin;</li>
  <li>Microsoft.Owin.Host.SystemWeb;</li>
  <li>Microsoft.Owin.Security;</li>
  <li>Owin</li>
  </ul>
  
  <p>My startup class: </p>
  
  <pre><code>[assembly: OwinStartup(typeof(ns.App_Code.Startup))]
  namespace ns 
  {
   public class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              app.MapSignalR();
          }
      }
  }
  </code></pre>
  
  <p>My hub:</p>
  
  <pre><code>public class PositionHub : Hub
  {
      static ConcurrentDictionary&lt;int, List&lt;string&gt;&gt; connectedUsers = new ConcurrentDictionary&lt;int, List&lt;string&gt;&gt;();
  
  
      public override Task OnConnected()
      {
  
  
          return base.OnConnected();
      }
  
  }
  </code></pre>
  
  <p>Finally, the client-side:</p>
  
  <pre><code>   &lt;script type="text/javascript" src="Scripts/jquery-2.2.4.min.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/jquery.signalR-2.3.0.min.js"&gt;&lt;/script&gt;
      &lt;script src="&lt;%= ResolveUrl("~/signalr/hubs") %&gt;" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
  
          $(function() {
  
              var logger = $.connection.positionHub;
              logger.start();
  
       });
  
      &lt;/script&gt; 
  </code></pre>
  
  <p>Also, added to web.config the following:</p>
  
  <pre><code>&lt;add key="owin:AutomaticAppStartup" value="true" /&gt; 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>  &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
  </code></pre>
  
  <p>When I run the app it gives the 404 error:
   GET <a href="http://localhost:41363/signalr/hubs" rel="nofollow noreferrer">http://localhost:41363/signalr/hubs</a> 404 (Not Found)</p>
  
  <p>This is not my first time using signalr, but it is the first time I have this issue, and been struggling for hours to solve it, with no luck...</p>