Aspnetcore.docs: Issue with GrpcClient.Create

Created on 4 Sep 2019  Â·  6Comments  Â·  Source: dotnet/AspNetCore.Docs

When following the instructions, I get an error on GrpcClient.Create. "GrpcClient" name does not exist


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Source - Docs.ms gRPC

Most helpful comment

I have the same issue.
GreeterClient does not exist ?!

This line does not compile:

var client = new Greeter.GreeterClient(channel);

All 6 comments

Installed NuGet package is Grpc.Net.Client 0.2.23-pre1.
In the sample folder I see that Grpc.Net.Client 0.1.22-pre2 is used
( xx\AspNetCore.Docs-master\AspNetCore.Docs-master\aspnetcore\tutorials\grpc\grpc-start\sample\GrpcGreeterClient ).
When downgrading to that version, the issue is solved

Grpc.Net.Client is no longer a pre-release. The GrpcClient type still does not exist, and none of the documentation has been updated to remove that and replace it with whatever it is you're supposed to do now.

I have the same issue.
GreeterClient does not exist ?!

This line does not compile:

var client = new Greeter.GreeterClient(channel);

+1, I have the same issue.

GrpcClient.Create has been removed in the latest version of Grpc.Net.Client. Use the client constructor with GrpcChannel.

I don't think this issue should have been closed, as the tutorial still said to call GrpcClient.Create. Sent pull request to fix.

Was this page helpful?
0 / 5 - 0 ratings