Skip to content

Blazor SignalR Client #9825

@hannespreishuber

Description

@hannespreishuber

Same Code working on Blazor Server side for a simple Chat, doenst work on Blazor Client side.
Just calling the "app" getting several errors in F12 command like

WASM: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: libc assembly: type: member:(null)

as I can not debug (also shift alt D in chrome) my guess is happens here
protected override async Task OnInitAsync()
{
connection = new HubConnectionBuilder()
.WithUrl("https://signalrdemo2220190428112854.azurewebsites.net/ChatDemoHub")
.Build();
await connection.StartAsync();

<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview4-19216-03" /> <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview4-19216-03" PrivateAssets="all" /> <PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview4-19216-03" PrivateAssets="all" /> <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.0.0-preview4-19216-03" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions