title: Failed to invoke signalR
body: <p>I am trying to send notification to My client(Angular) from .net core server(c#) using signalR. to notify client when the event is fired. But i am getting an error. 
  Error: Error: Failed to invoke 'Send' due to an error on the server</p>
  
  <p>Appcomponent.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>ngOnInit() {
   this._hubConnection = new signalR.HubConnectionBuilder()
  .configureLogging(signalR.LogLevel.Information)
  .withUrl("http://localhost:5000/message/Send", this.transportType)
  .build();
  }
  form(){
  this._hubConnection.on("Send", (data) =&gt; {
    const received = `message: ${data}`;
    console.log(received);
    that.disabled = false;
  });
    this._hubConnection.start()
  .then(() =&gt;
  this._hubConnection.invoke('Send', "hey")
  .catch(function (err) {
   console.error(err.toString());
  })
  )
  .then(() =&gt;
  console.log('connected'))
  .then(() =&gt; this._hubConnection.stop())
  .then(() =&gt; console.log('Disconnected'))
  .catch(e =&gt; console.error(e.message));
  }
  </code></pre>
  
  <p>SignalR hub</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class DataHub : Hub
  {
      public async Task Send1(string message1, string Root)
      {
          await Clients.All.SendAsync("Send1", message1);
      }
  }
  </code></pre>
  
  <p>Controller</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class DataController : Controller
  {
      private IHubContext&lt;DrawingHub&gt; _hubContext;
      public DataController(IHubContext&lt;DataHub&gt; hubContext)
      {
          _hubContext = hubContext;
      }
      private void OnProvideData(DataAndHeader data)
      {
          // server side code
          _hubContext.Clients.All.SendAsync("Send", data);
      }
  }
  </code></pre>
  
  <p>Startup.cs</p>
  
  <pre class="lang-cs prettyprint-override"><code>services.AddSignalR();
  
  app.UseSignalR(routes =&gt;
              {
                  routes.MapHub&lt;DrawingHub&gt;("/message/Send");
              });
  </code></pre>
  
  <p>Error logging</p>
  
  <blockquote>
    <p>fail: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[8]
          Failed to invoke hub method 'Send'.
    System.IO.InvalidDataException: Invocation provides 1 argument(s) but target expects 0.
       at Microsoft.AspNetCore.SignalR.Protocol.JsonHubProtocol.BindArguments(JArray args, IReadOnlyList`1 paramTypes)
       at Microsoft.AspNetCore.SignalR.Protocol.JsonHubProtocol.ParseMessage(Utf8BufferTextReader textReader, IInvocationBinder binder)</p>
  </blockquote>
  
  <p>I want to invoke the signalr connection to notify client after the server side code is executed in the event. Can someone please guide me. Thanks in Advance.</p>