title: SignalR and .NET Client does not work on ASP.NET WebForms page
body: <p>I try to build notifications for dashboard in my WebForms application under .NET 4. I have downloaded SignalR version 1.2 (both .net client and server) and prepared a simple notification example. Unfortunatelly it does not work and I can't figure why. If I type <a href="http://myserver.com/notificationSample/signalr/hubs" rel="nofollow">http://myserver.com/notificationSample/signalr/hubs</a> javascript proxy appears and it looks ok.</p>
  
  <p>Take a look at the implementation below, does someone see any bug?</p>
  
  <p>a) Hub implementation</p>
  
  <pre><code>[HubName("NewMessage")]
  public class NewMessageNotifier : Hub
  {
      public void NotifyDashboards()
      {
  
          Clients.All.NewMessageCreated();
      }
  }
  </code></pre>
  
  <p>b) Notification caller (server) ~/Pages/NotificationCaller.aspx</p>
  
  <pre><code>public partial class NotificationCaller : Page
  {
      private HubConnection connection;
      private IHubProxy proxy;
  
      protected void Page_Load(object sender, EventArgs e)
      {
              connection = new HubConnection( "http://myserver.com/notificationSample" );
  
              proxy = connection.CreateHubProxy( "NewMessage" );
  
              connection.Start().Wait();                
  
      }
      // it is handler for onclick event on Button control
      protected void NotifyDashboard(object sender, EventArgs e)
      {
          proxy.Invoke( "NotifyDashboards" ).Wait();
      }
  }
  </code></pre>
  
  <p>c) Dashboard (client, listener) ~/Pages/Dashboard.aspx</p>
  
  <pre><code>public partial class Dashboard: BasePage
  {
      private HubConnection connection;
  
      protected void Page_Load(object sender, EventArgs e)
      {
          connection = new HubConnection( "http://myserver.com/notificationSample" );
  
          var proxy = connection.CreateHubProxy("NewMessage");
  
          proxy.On("NewMessageCreated", ShowNotification);
  
          connection.Start();
      }
  
      private void ShowNotification()
      {
          ShowAlert("New message added!");
      }
  
  }
  </code></pre>