title: SignalR -- Error in getting to /signalR/hubs
body: <p>I am trying to run the sample signalR code. When i run it inbuild Webserver it works fine. But when i host the code in the virtualDirectory getting the following error</p>
  
  <p><strong>Line 35:
  Object is null</strong></p>
  
  <p>It comes down to the point where it looks like it couldnt locate the AUTOGenerated signalR/Hubs file ....</p>
  
  <p>I have the following code </p>
  
  <pre><code>&lt;script src="Scripts/jquery-1.6.4.min.js" &gt;&lt;/script&gt;
  &lt;script src="Scripts/jquery.signalR-1.0.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="signalr/hubs" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have used fiddler which shows me it is looking for the file in the following direction</p>
  
  <p>GET <code>http://myserver/SignalRChat/signalr/hubs</code> 404 Not Found (text/html) GET <code>http://myserver/SignalRChat/signalr/hubs</code> 404 Not Found (text/html)</p>
  
  <p>I have change the following line to all of this but none of them seems to work</p>
  
  <p><code>&lt;script type="text/javascript" src="/signalr/hubs"&gt;</code></p>
  
  <p><code>&lt;script type="text/javascript" src="~/signalr/hubs"&gt;</code></p>
  
  <p>or</p>
  
  <p><code>&lt;script type="text/javascript" src="&lt;%= ResolveUrl(" hubs="" signalr=""&gt;// // ]]&gt;&lt;/script&gt;</code></p>
  
  <p>Nothing is working ... Could anyone suggest me on this</p>