asp.net-coreblazorgrpcgrpc-web

Is grpc-web code-first approach will support IIS?


I created a gRPC service with a code-first approach.

I published my gRPC code to IIS and while consuming in a Blazor client, I was getting "Exception was thrown by handler"

The same code is working fine with localhost.


Solution

  • According to this GitHub issue, IIS cannot currently host a gRPC service, because HTTP.sys doesn't support trailing headers.

    gRPC relies on trailing headers to communicate vital information, like call status.

    This issue has mentioned that IIS is supported with .NET 5 and an Insiders Build of Windows.