Search code examples
c#.netuwpsignalruwp-xaml

Using SignalR in UWP application


I have created an UWP application with multiple functionalities. A component of the application uses SignalR for communication. The application is running successfully locally and on some other machines but for one particular system when I deployed it and used the functionality which uses SignalR the app got crashed silently without error.

From the logs, I can see that the last call that the application made was

try{
    conn = new HubConnection(BaseUrl);
      proxy = conn.CreateHubProxy("hubName");
      conn.Start(new LongPollingTransport()).Wait();
    await proxy.Invoke("OpenPortReading");
}
catch(Exception ex)//No exception catched here
{
}

After running the last line shown above the app got crashed without exception

Thanks in Advance


Solution

  • The issue was not with SignalR, The application was crashing because of a UI issue due to an unsupported windows version.