title: SignalR makes IIS hang after rebuild
body: <p>Windows 8.1. IIS 8.5. SignalR versions:</p>
  
  <pre><code>&lt;package id="Microsoft.AspNet.SignalR" version="2.1.2" targetFramework="net451" /&gt;
  &lt;package id="Microsoft.AspNet.SignalR.Core" version="2.1.2" targetFramework="net451" /&gt;
  &lt;package id="Microsoft.AspNet.SignalR.JS" version="2.1.2" targetFramework="net451" /&gt;
  &lt;package id="Microsoft.AspNet.SignalR.SystemWeb" version="2.1.2" targetFramework="net451" /&gt;
  </code></pre>
  
  <p>Whenever I rebuild my project/solution, IIS spikes to max CPU usage and I cannot reload my page. I checked procmon.exe and it reports an enormous amount (>20 000/s) of "RegOpenKey/RegQueryKey" operations like these ones:</p>
  
  <pre><code>Date &amp; Time:    19.11.2014 10:47:20
  Event Class:    Registry
  Operation:  RegQueryKey
  Result: SUCCESS
  Path:   HKLM
  TID:    23272
  Duration:   0.0000059
  Query:  HandleTags
  HandleTags: 0x0
  
  Date &amp; Time:    19.11.2014 10:47:20
  Event Class:    Registry
  Operation:  RegOpenKey
  Result: REPARSE
  Path:   HKLM\SYSTEM\CurrentControlSet\Services\SignalR\Performance
  TID:    23272
  Duration:   0.0000121
  Desired Access: Read
  
  
  Date &amp; Time:    19.11.2014 10:47:20
  Event Class:    Registry
  Operation:  RegOpenKey
  Result: NAME NOT FOUND
  Path:   HKLM\System\CurrentControlSet\Services\SignalR\Performance
  TID:    23272
  Duration:   0.0000062
  Desired Access: Read
  </code></pre>
  
  <p>These are the steps I use to reproduce this issue:</p>
  
  <ol>
  <li>Everything works fine.</li>
  <li>I write some code and compile</li>
  <li>SignalR does a reconnect with WebSocket transport and gets this response in the response header: "HTTP/1.1 101 Switching Protocols"</li>
  <li>I do a request and IIS Worker process hangs and never comes back OR I wait t 2-3 minutes and things are working again.</li>
  </ol>
  
  <p>I am experiencing this in IIS Express as well. Normally I resolve this by killing the IIS Worker process and reloading. Is this a permissions issue? Currently the application pool runs under my local user, but I have tried Application Pool Identity with the same results. What should be in "HKLM\System\CurrentControlSet\Services\SignalR\Performance"? Currently there is no such registry key on my machine.</p>