Skip to content

SignalR callbacks working on net7.0, not on net9.0 #58485

Closed
@ispysoftware

Description

@ispysoftware

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Updating from net7.0 to net9.0 breaks all callbacks from signalr.

When running this code under net7.0 it works fine, i see "SignalR connection established." followed by messages coming in on "ProcessJSON". I change to net9.0 and I just see "SignalR connection established." - nothing is logged and no messages arrive.

Expected Behavior

Should function exactly the same as net7.0

Steps To Reproduce

See repro project

https://github.com/ispysoftware/sigrtest9/tree/main

The test fails. Change the net runtime from net9.0 to net7,0 in the project file and the test passes
Set Trimming to false and the test passes.

Exceptions (if any)

No response

.NET Version

net9.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issuearea-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions