question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grpc.Net.Client causing AspNetCore requests to hang on .NET Framework

See original GitHub issue

We have a legacy .NET Framework application using ASP.NET Core. When the Grpc.Net.Client NuGet package is added to the project, the server starts but all ASP.NET Core requests hang.

I’ve created a minimal repro. The only difference between GoodApi and BrokenApi is the following reference:

<PackageReference Include="Grpc.Net.Client" Version="2.37.0" />

Note that we have another legacy OWIN .NET Framework application using ASP.NET (not core), and are not experiencing these issues.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesNKcommented, Oct 14, 2021

ASP.NET Core 2.x is no longer supported. Updating to a newer version will fix your issue, but that means you’ll need to use .NET Core. 2.x was the latest version that supported .NET Framework.

0reactions
nullpaintercommented, Oct 14, 2021

Thanks James. I guess that’s good news on the gRPC front at least.

Is this something I should raise with another team, or do you think I should reconsider calling gRPC services in these projects?

(or, indeed, use this as an opportunity to upgrade - as I’m anticipating this is going to be the first of many impedance mismatches we will be facing…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Grpc client in .net standard fails when called from . ...
Grpc.Net.Client only works on .NET Framework (as opposed to .NET Core and .NET5+) with limitations. The reason is that .NET Framework ...
Read more >
.NET & GRPC What they forgot to tell you | FAESEL.COM
NET Framework client app consume a .NET Core GRPC server? How to debug with tools, call an endpoint; Authentication and authorization ...
Read more >
Troubleshoot gRPC on .NET
Call insecure gRPC services with .NET Core client. The .NET gRPC client can call insecure gRPC services by specifing http in the server...
Read more >
Performance best practices with gRPC
ASP.NET Core apps use server GC by default. Highly concurrent apps generally perform better with server GC. If a gRPC client app is...
Read more >
Implementing Microservices with gRPC and .NET Core 3.1
Moving forward, you will learn how to use gRPC in .NET Core 3.1 by building a simple service and a client communicating through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found