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
1
vote
1 answer
c# gRPC Context.Connection.ClientCertificate is always null on server side
I have a gRPC service hosted on a .NET 5 Web Project which I call from another .NET 5 web Project containing a gRPC client. I need to secure the channel with a certificate and the application with a JWT token and I used this code:
Client-side, gRPC…

Giuseppe Terrasi
- 479
- 7
- 22
1
vote
0 answers
getting error when calling dotnet grpc service from golang client
Csharp:
// configure application:
app.UseRouting();
app.UseEndpoints(endpoints =>
{
// Communication with gRPC endpoints must be made through a gRPC client.
// To learn how to create a client,…

Mortalus
- 10,574
- 11
- 67
- 117
1
vote
1 answer
Can i use a .NET Framework gRPC Client against a .net CORE gRPC Server?
there is grpc-dotnet, which has more support in Visual Studio for .net CORE
then there is C-Core, which supports old .NET FRAMEWORK versions.
I have an Excel-Addin, which is why i am stuck with .NET FRAMEWORK. Can i program a Server Component in…

Jens Caasen
- 597
- 1
- 6
- 19
1
vote
1 answer
Why am I getting an Grpc.Core.RpcException when trying to get data from gRPC service written .net core
I have a gRPC service (written in .net core 3.1) deployed in windows server as a self hosted service running in kerstel.
I added the below configuration to get the service running in https.
"Kestrel": {
"EndpointDefaults": {
"Protocols":…

curlackhacker
- 435
- 5
- 10
1
vote
0 answers
gRPC should I shutdown a client channel in c#?
I have implemented a gRPC client in C#.
Should I shutdown the channel in the destructor?
private readonly Channel channel;
~MyClient()
{
this.channel.ShutdownAsync().Wait();
}

user2809176
- 1,042
- 12
- 29
0
votes
1 answer
HTTPS gRPC request to asp.net server behind an Istio gateway fails
I have a grpc asp.net server which is sitting behind istio ingress gateway. grpc request works while using TCP as gateway protocol but it fails if protocol is set to HTTPS. I am trying to use istio to terminate ssl/tls grpc request but no luck so…

Prata
- 1,250
- 2
- 16
- 31
0
votes
1 answer
How can I use GRPC versioning in a code-first approach?
As you can see in Versioning gRPC services, in GRPC we can use versioning by defining package in a proto file.
How can I achieve the same functionality in a code-first approach?

sorosh_sabz
- 2,356
- 2
- 32
- 53
0
votes
0 answers
Throwing an RpcException when hosting on IIS results in different output than when hosting in Kestrel. How can I get IIS to give the same output?
I've built a gRPC service on aspnetcore, running it locally as an exe. However, I will need to host it on IIS in production, so I have been comparing the behavior when hosted on IIS, and I've run into a large discrepancy in the exception handling. …

rrreee
- 753
- 1
- 6
- 20
0
votes
0 answers
Communicating from a .NET gRPC client to a C++ gRPC Server
I am trying to connect my gRPC client which is written in C# to another gRPC server which is written in C++.
I have configured my gRPC client to use the gRPC server as the endpoint address.
public void ConfigureService(IServiceCollection…

amsga
- 98
- 12
0
votes
1 answer
How to regenerate grpc classes in dotnet?
I was checking the official Microsoft docs regarding the usage of grpc services. I have downloaded their famous greeter service example and ran It successfully but the docs didn't explain how to regenerate the grpc classes after the proto files have…

A.Mohammadi
- 304
- 4
- 16
0
votes
1 answer
gRPC JSON transcoding with Any element
I'm using JSON transcoding in a .NET 7 gRPC service.
A certain element in the proto file is using the Any element:
google.protobuf.Any payload = 3 [(validate.rules) = {any:{required:true}}];
When I'm sending a request containing the Any…

ngruson
- 1,176
- 1
- 13
- 25
0
votes
1 answer
Linking different Protobuf files C#
I'm trying to link protobuf together from different projects in my solution.
I seem to get File Not Found errors every time I build and can't find a way for the protobuf compiler to find the files.
The following protobuf files i'm using also a note…

Kevindt12
- 109
- 1
- 10
0
votes
1 answer
Failed to bind to address http://[::]:8080: address already in use. .net grpc service
Since friday my grpc service has been restarting constantly saying my port 8080 is already in use. It was working fine until friday and no update was made in my code.
builder.WebHost.ConfigureKestrel(options =>
{
// Comment out…

Christian M
- 488
- 6
- 22
0
votes
0 answers
bitnami/external-dns with Kubernetes on Docker Desktop does not work
What I'm trying to do
I have deployed an aps.net core gRpc service on Docker for Desktop (Kubernetes enabled). To do client-side load balancing, I want to expose the same via a headless service. The deployment and service definition YAML files are…

Venkatesh
- 320
- 2
- 18
0
votes
1 answer
gRpc transcoding is not working- unable to find annotation.proto and http.proto are thrown
I'm trying to do gRpc Transcoding with .NET 7. I'm following the article Here. I'm also referring to the sample implementation here. After I added the proto files annotation.proto and http.proto and include the annotations.proto to the main proto…

Venkatesh
- 320
- 2
- 18