title: Signalr/Hub not loading in IIS 7 but working correctly in Visual Studio
body: <p>I am working on a Web Application on the Asp .Net 4.0 framework that uses SignalR, having installed it from the Nuget package. When I debug or run the application without debugging locally it works correctly. However, when it is deployed to the production server it is unable to find the <code>signal/hubs</code> file that is being dynamically injected into the httphandlers. Due to it's dynamic nature it has to be created on the fly, so I can't just copy the working file into the project either.</p>
  
  <p>I have tried the following methods of loading the file:</p>
  
  <pre><code>&lt;script src="/signalr/hubs" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="signalr/hubs" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And in the code behind:</p>
  
  <pre><code>ScriptManager.GetCurrent(Page).Scripts.Add(new ScriptReference("~/signalr/hubs"));
  </code></pre>
  
  <p>All of these work locally but not on the server. The path that is rendered in the html looks correct, but there is no file there, delivering a 404 error. If it matters, the server has given the application Full Trust and the application is being run as an application under another site in IIS that uses a subdomain.</p>