ASP.Net Core UWP SignalR client HubConnectionBuilder.Build crash #27164
-
Hi everbody, We are updating ours project from a Server with .Net Framework to a server with .Net Core 3.1 with Service Fabric. Based on that we migrate from SignalR to AspNetCore Signal R. In the server all seems to be working fine but we encounter a bug we can't figure out how to resolve in the UWP client. In debug mode all is working fine, but when we create a release of our client the SignalR connection failed when calling the Build method on HubConnectionBuilder.
The error message : The StackTrace: The last occurence of our file in the stack trace is the ClientMessageService.cs:line 52. It's the code pasted The Min version of UWP is Windows 10 Fall Creators Update and the Target version is 1809 build 17763. Can anyone help us resolve our issue? Feel free to ask for additional informations. Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You might need an rd.xml file, UWP in Release might be doing some trimming and getting rid of some types/methods. |
Beta Was this translation helpful? Give feedback.
-
Thanks to @BrennanConroy and @davidfowl for putting us in the right direction. We had to add
to our rd.xml |
Beta Was this translation helpful? Give feedback.
You might need an rd.xml file, UWP in Release might be doing some trimming and getting rid of some types/methods.