I had a hub hosted in a console app with a WPF app connecting to it. It worked just fine. Then I moved the hub into a separate project and added a reference from the host to new project. Now I am getting a 500 error, with no other details.
Is there anything different that needs to be done in order to host a hub from another assemble/namespace?
Edit: I tried a few things after opening the question. Here is what I have tried so far:
- Setting the HubName attribute. - Did not work.
- Passing the full namespace + class into HubConnection.CreateHubProxy. - Did not work.
- Putting my hub class into the same project but a different namespace. - This worked.
Here is the exception that gets passed back.
"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.AspNet.SignalR.Client.Http.HttpHelper.<>c_DisplayClass2.b_0(IAsyncResult ar)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)"