Skip to content

Common Language Runtime detected an invalid program. #1074

Description

@JaBistDuNarrisch

I am using: Version="7.10.0" with Streaming Hub

server and client are wrapped in their own docker container (debian bookworm slim). When I run it on my local machine without Docker it works.

both apps (client and server) are created using dotnet publish (with release option)

When I invoke receiver.RegisterAtManagerAsync() on the server (sending to the client) I am facing an issue

fail: MagicOnion.Server.Binder.Internal.MagicOnionGrpcMethodHandler[91]
manager-1 | A hub method handler throws an exception occurred in RegisterAtManagerAsync
manager-1 | System.InvalidProgramException: Common Language Runtime detected an invalid program.
...
manager-1 | at MagicOnion.Server.Hubs.StreamingHubContext.g__Await|43_0(StreamingHubContext ctx, ValueTask value)
manager-1 | at MagicOnion.Server.Hubs.StreamingHubBase`2.ConsumeRequestQueueAsync(CancellationToken cancellationToken)

    public async ValueTask OnRegisterAtManagerAsync()
    {
        await Task.CompletedTask;
        // log if needed in the future
    }

async with ValueTask should be allowed in Version 7?

Documentation of Client Results:
https://cysharp.github.io/MagicOnion/streaminghub/client-results

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions