gRPC for .NET! gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems. https://learn.microsoft.com/en-us/aspnet/core/grpc/?view=aspnetcore-3.0
Questions tagged [grpc-dotnet]
87 questions
3
votes
1 answer
How to include custom directory when building gRPC dotnet core project with MSBuild
I have a dotnet core gRPC project and I'm trying to include route annotations in my proto files like below:
import "google/api/annotations.proto";
file structure is like this (for the reason being that I imported googleapis repository as a git…

Oscar
- 1,993
- 2
- 18
- 27
2
votes
1 answer
Running REST API and gRPC simultanously using ASP.NET Core
I am trying to run a gRPC server and client using ASP.NET Core 6 side-by-side REST API on a specific port like 5000. I mean, I want to use localhost:5000, but after checking the dotnet's gRPC template I found that the Http2 protocol should be set…

Hadi Samadzad
- 1,480
- 2
- 13
- 22
2
votes
1 answer
specified method is not supported error on calling grpc service using protobuf-net library
My team uses Google grpc communication for micro service communication. I came across protobuf-net that is fast, reduces code complexity and no .proto file to be defined. I wanted to give a try using protobuf-net to see if we gain considerable…

Anakar
- 112
- 11
2
votes
1 answer
Keepalive not working as expected in gRPC dotnet core client and gRPC nginx-ingress controller
We have a gRPC dotnet core service running on Kubernetes behind Nginx. The service has bidirectional streaming endpoint. The ingress is configured with grpc_read_timeout, grpc_send_timeout & client_body_timeout as per documentation to allow the…

ManishK
- 21
- 1
2
votes
1 answer
How to serialize null values in array?
I am working with protobuf-net v3.0.101 on Windows platform and getting the below exception for null values in String array while serializing it using grpc protobuf-net:
I have defined my DataContract like this:
[DataContract]
public class…

Priyanshu
- 31
- 4
2
votes
0 answers
Grpc Client throws Grpc.Core.RpcException (Response protocol downgraded to HTTP/1.1.)
I spend the last three days (Reading Docus, Trying different vesions of VS and .NET, check questions in Stackoverflow, issues in github, ...) about my Grpc client, the server start fine but the client never work, I tried Grpcurl it's works fine but…

MaJiD
- 74
- 1
- 8
2
votes
1 answer
ASP.NET Core 3.1 read stream file upload in HttpPut request problem
Problem Statement:
I'm trying to iterate over a Streamed file upload in a HttpPut request using the Request.Body stream and I'm having a real hard time and my google-fu has turned up little. The situation is that I expect something like this to work…

Tim Frye
- 21
- 1
- 4
2
votes
1 answer
Hosting both GRPC service and REST controller in ASP.NET Core 5.0 application
I have a GRPC service written in ASP.NET Core 5.0 and I wanted to add a classic REST controller to explore its inner status during the development phase.
Unfortunately, I am experiencing some issues with routing.
This is the relevant endpoint…

Kralizek
- 1,999
- 1
- 28
- 47
2
votes
1 answer
How to use gRPC service in .net api gateway?
I want to use the gRPC service with the api gateway.
How can I use it for gRPC in .netcore? Can it be done using Ocelot?

Kenan BAŞDEMİR
- 57
- 9
2
votes
1 answer
gRPC server .net framework - how to configure to use a TLS certificate
I am new to gRPC and just exploring options for communications in my .net framework servers.
Due to the age and size of the server projects, it may be some time before these can be ported to .net 5+, but I want to allow for newer .net 5+ clients to…

peterc
- 6,921
- 9
- 65
- 131
2
votes
0 answers
Microsoft.VisualStudio.Web.Host.exe locking grpc_csharp_ext.x86.dll in Visual Studio
I'm seeing an issue where the visual studio process Microsoft.VisualStudio.Web.Host.exe is locking a native dll for gRPC grpc_csharp_ext.x86.dll.
We have a .net Framework 4.6.1 web application running in IIS, on windows machines (Windows10 and…

dann.dev
- 2,406
- 3
- 20
- 32
2
votes
2 answers
How to support C# dynamic types in an gRPC proto file
We have a POST action in our asp.net core application that accepts a dynamic object.
[HttpPost]
public Task SubmitAsync(dynamic unitOfWork)
We'd like to transform this POST action to a gRPC server and we'd like to continue receiving…

Arash
- 3,628
- 5
- 46
- 70
2
votes
0 answers
Error starting gRPC call. HttpRequestException: Connection reset by peer SocketException: Connection reset by peer
I have asp.net core 3.1 Grpc Server and asp.net core 3.1 Grpc client application. Intermittently I see the below error happening :
Status(StatusCode=Internal, Detail="Error starting gRPC call. HttpRequestException: Connection reset by peer…

santosh kumar patro
- 7,231
- 22
- 71
- 143
2
votes
2 answers
How to create gRPC streaming interceptors using C#?
I have figured out how to create unary RPC interceptors but I can't figure out how to make streaming RPC interceptors.
This is what I have thus far:
public override async Task ClientStreamingServerHandler(
…

Jivec
- 23
- 1
- 4
2
votes
1 answer
ASPNET CORE GRPC async interceptor method
I am trying to asynchronously create a new AsyncUnaryCall instance that wraps the original interecepted one.
the problem is the poor design of interceptor base class which does not allow async method interceptors. (as described here:…

SHM
- 1,896
- 19
- 48