title: SignalR - Broadcasting over a Hub in another Project from outside of a Hub
body: <p>I have two projects in my solution:</p>
  
  <blockquote>
    <p>Project 1: "SignalRChat" (MVC) - Works fine<br>
    Project 2:
    "DatabaseWatcherService" Windows Service - Works fine</p>
  </blockquote>
  
  <p>I'm trying to make a call to my SignalRChat Hub from my Windows Service and it doesn't appear to be working.</p>
  
  <p>This is where I call my Hub from my windows service (<a href="https://github.com/SignalR/SignalR/wiki/Hubs#broadcasting-over-a-hub-from-outside-of-a-hub">https://github.com/SignalR/SignalR/wiki/Hubs#broadcasting-over-a-hub-from-outside-of-a-hub</a>):</p>
  
  <pre><code>void PerformTimerOperation(object sender, EventArgs e)
      {
          eventLog1.WriteEntry("Timer ticked...");
  
          var message = "test";
  
          var context = GlobalHost.ConnectionManager.GetHubContext&lt;SignalRChat.ChatHub&gt;();
          context.Clients.All.addNewMessageToPage(message);
      }
  </code></pre>
  
  <p>I'm getting the following error when attempting to connect:</p>
  
  <blockquote>
    <p>Message=The remote server returned an error: (500) Internal Server Error.</p>
  </blockquote>
  
  <p>I'm trying to connect via <code>var connection = new HubConnection("http://localhost:2129");</code></p>
  
  <p>Port 2129 is what my MVC project is running on.</p>