Hello,
Thank you for posting in Microsoft Community forum.
Based on the provided screenshot, Shilpa mentioned encountering an issue where broadcasting messages does not work when using Microsoft SignalR 1.29.0 with .NET 8, although the same functionality works fine in .NET 6.
Possible Causes and Troubleshooting Steps:
- Compatibility Issues Between SignalR and .NET 8:
Check whether SignalR 1.29.0 is fully compatible with .NET 8. It's possible that this version of SignalR has not been optimized for .NET 8 yet.
If compatibility is the issue, consider upgrading to the latest version of SignalR (if available) or reviewing its release notes for compatibility details.
- API or Behavioral Changes in ASP.NET Core:
.NET 8 might introduce certain changes that affect SignalR's broadcasting functionality. Refer to the official migration guide for .NET 8 to identify if any code or configuration updates are necessary.
- NuGet Package or Dependency Versions:
Ensure all NuGet packages used in the project are compatible with SignalR and .NET 8.
Use the command dotnet list package --outdated to check for outdated dependencies.
- Code Logic Issues:
Verify the broadcasting logic in your implementation and ensure that it complies with the requirements of .NET 8.
Confirm that the broadcasting methods in the HubContext are being invoked correctly.
- Enable Logging for Debugging:
Enable SignalR logging to check if the connection is being correctly established and whether there are any errors during broadcasting.
Ensure the server and client are using the same protocol (e.g., WebSocket).