Facing some issues with micrisft signalr 1.29.0 with .net 8 unable to broadcast the message

Anonymous
2025-01-13T09:11:17+00:00

hi

After updating to .net 8 singlar connection can be stablished and broadcast message is not working is there any reason

but same works in .net 6

Regards

shilpa

Windows Windows Client for IT Pros Networking Network connectivity and file sharing

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-14T05:46:07+00:00

    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:

    1. 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.

    1. 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.

    1. 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.

    1. 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.

    1. 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).

    0 comments No comments