title: map hubs in referenced project
body: <p><a href="http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host" rel="nofollow noreferrer">http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host</a></p>
  
  <p>In my case, my hubs are in a project referenced from the project code that spins up the self-hosted application.</p>
  
  <p>On the line <code>connection.Start().Wait();</code> I get an exception.  The following is the sequence of exceptions thrown at that line:</p>
  
  <ol>
  <li><strong>The specified registry key does not exist</strong> System.IO.IOException</li>
  <li><strong>'MessageHub' Hub could not be resolved</strong>  InvalidOperationException</li>
  <li><strong>The remote server returned an error: (500) Internal Server Error</strong> WebException</li>
  </ol>
  
  <p>The signature of the message hub class in the referenced project is <code>public class MessageHub : Hub</code>.</p>
  
  <p><strong>Update:</strong> To test the theory, I moved the hub class from the referenced project into my test project and updated the namespace.  It worked.  So I think the theory here is sound... default hub resolution does not find hubs in referenced project or in separate namespace.</p>
  
  <p>How can I convince MapHubs to find the test hub in the referenced project?</p>