AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Issue with GrpcClient.Create

Open RobinKetting opened this issue 7 years ago • 6 comments

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.

RobinKetting avatar Sep 04 '19 12:09 RobinKetting

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

RobinKetting avatar Sep 04 '19 12:09 RobinKetting

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.

npuc85 avatar Sep 25 '19 17:09 npuc85

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

This line does not compile:

var client = new Greeter.GreeterClient(channel);

ddobric avatar Sep 28 '19 14:09 ddobric

+1, I have the same issue.

damonpkuml avatar Sep 29 '19 19:09 damonpkuml

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

JamesNK avatar Oct 22 '19 02:10 JamesNK

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

jongalloway avatar Nov 01 '19 21:11 jongalloway