Skip to content

SignalR version 9.0.4 not working in .NET 8 #61897

@wbunthof

Description

@wbunthof

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In the nuget page of 9.0.4, states that it has support for net8.0

However with the following project file

<Project Sdk="Microsoft.NET.Sdk.Web">
	<PropertyGroup>
		<TargetFramework>net8.0</TargetFramework>
		<Nullable>enable</Nullable>
		<ImplicitUsings>enable</ImplicitUsings>
	</PropertyGroup>
	<ItemGroup>
		<PackageReference Include="Blazor-ApexCharts" Version="5.1.0" />
		<PackageReference Include="HtmlAgilityPack" Version="1.11.72" />
		<PackageReference Include="Markdig" Version="0.40.0" />
		<PackageReference Include="MermaidDiagrams" Version="0.3.5" />
		<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.4" />
		<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
		<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
		<PackageReference Include="Svg" Version="3.4.7" />
	</ItemGroup>
</Project>

It results in the following mulltiple of the following exception.
Method not found: 'System.String Microsoft.AspNetCore.SignalR.IInvocationBinder.GetTarget(System.ReadOnlySpan`1)'.

When I go back to version 8.0.15
This exception isn't thrown, and the web application properly works.

Expected Behavior

Showing a proper rendered page, instead of a render failure.

Steps To Reproduce

Not yet complete - Can't repodruce from new blazor application

  • Create a .NET 8 Asp.Net project.
  • Install 'Microsoft.AspNetCore.SignalR.Client' version '9.0.4'
  • Run

Exceptions (if any)

Method not found: 'System.String Microsoft.AspNetCore.SignalR.IInvocationBinder.GetTarget(System.ReadOnlySpan`1)'.

.NET Version

.NET 8
Microsoft.AspNetCore.SignalR.Client - 9.0.4

Anything else?

Does anybody have an idea why this is occurring at the project I'm working on, but not on a new clean project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-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