Reputation: 51
What is this error? In the first calling this code:
SignalRInvoker Invoker = new SignalRInvoker GlobalHost.ConnectionManager.GetHubContext<GeneralHub>().Clients);
And the funny exception is :
Two Hubs must not share the same name. 'SM.GUI.Common.Remouting.GeneralHub, SM.GUI.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'SM.GUI.Common.Remouting.GeneralHub, SM.GUI.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' both share the name 'generalHub'.
Upvotes: 2
Views: 1546
Reputation: 1228
I had this error when I accidentally had 2 different .dll's in the bin folder of my web project, with one of them being an old .dll which happened to also contain the same named hub in it. When deploying to IIS I think the hub auto discovery process found the hubs in both .dlls. As soon as I just deleted the old .dll I worked fine.
Upvotes: 0
Reputation: 5745
This error can be caused by not publishing the Hub correctlly,
Take a look at https://github.com/SignalR/SignalR/issues/2935 it deals with the same error.
Upvotes: 0