title: Signalr in Asp.Net MVC 4 app
body: <p>I'm working on Asp.net MVC app, I'd like to use signalr.</p>
  
  <p>Signalr to be hosted in IIS.</p>
  
  <p>I added the signalr dlls and added the reference to it.</p>
  
  <p>In <strong>Global.asax</strong>,</p>
  
  <p>I put the code,</p>
  
  <p>inside <strong>Application_Start()</strong></p>
  
  <pre><code> " RouteTable.Routes.MapHubs();"
  </code></pre>
  
  <p>I've pasted the <strong>Global.asax</strong>,</p>
  
  <pre><code>  using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Http;
    using System.Web.Mvc;
    using System.Web.Optimization;
    using System.Web.Routing;
  
  public class MvcApplication : System.Web.HttpApplication
  {
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
  
          WebApiConfig.Register(GlobalConfiguration.Configuration);
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
          BundleConfig.RegisterBundles(BundleTable.Bundles);
          AuthConfig.RegisterAuth();
          RouteTable.Routes.MapHubs();
      }
  }
  </code></pre>
  
  <p>When i run the app, say, <code>"http://localhost:4432"</code>,</p>
  
  <p>When I try <code>"http://localhost:4432/signalr/hubs"</code>, I get exception as follows,</p>
  
  <pre><code>The resource cannot be found.
  
  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
  
  Requested URL: /signalr/hubs
  </code></pre>
  
  <p><strong>Signalr version :</strong> I tried with <code>V1.1.25 and 2.0</code></p>
  
  <p>Someone direct me what I should do to get it corrected?</p>