title: SignalR chat not working when configured in IIS7 - windows 7
body: <p>I have created simple chat application using SignalR, Visual studio 2013 (but application is in 2012), framework 4.5.</p>
  
  <p>I use ASP.NET webforms only (Not MVC)</p>
  
  <p>Its working when I run via visual studio.
  But when I configured it in IIS, it's giving the following error in page console -</p>
  
  <pre><code>GET http://localhost/chat/signalr/hubs 404 (Not Found) localhost/:30
  Uncaught TypeError: Cannot read property 'client' of undefined localhost/chat/:112
  </code></pre>
  
  <p>'chat' is name of virtual directory.</p>
  
  <p>Added foll. as well in web.config -</p>
  
  <pre><code>&lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false"/&gt;
    &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>code from Global.asax.cs-</p>
  
  <pre><code>protected void Application_Start(object sender, EventArgs e)
      {
          // Register the default hubs route: ~/signalr/hubs
          RouteTable.Routes.MapHubs();
      }
  </code></pre>
  
  <p>Code from Index.Html -</p>
  
  <pre><code>&lt;!--Reference the SignalR library. --&gt;
  &lt;script src="Scripts/jquery.signalR-1.0.0.js"&gt;&lt;/script&gt;
  
  &lt;!--Reference the autogenerated SignalR hub script. --&gt;
  &lt;script src="signalr/hubs"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have tried this as well, but not successful -</p>
  
  <pre><code>&lt;script src="&lt;%= ResolveUrl("~/signalr/hubs") %&gt;" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>NOTE - I am refering this <a href="http://www.codeproject.com/Articles/562023/Asp-Net-SignalR-Chat-Room" rel="nofollow">http://www.codeproject.com/Articles/562023/Asp-Net-SignalR-Chat-Room</a>
  Thanks in advance.</p>