Hi, I would like to add the information, that the gRPC server is a console application, not a ASP.NET Core application. Christian
Christian Havel schrieb am Montag, 22. März 2021 um 14:23:50 UTC+1: > Hi, > > I started to play around with gRPC. I have a very simple gRPC service in > .NET Core 3.1. > Then I wrote a .NET Core 3.1 client. Both applications are running on the > same machine. > Everything works fine. > > Now I try to connect my gRPC server from a .NET Framework 4.8 client > (Windows Forms), that fails with the following exception: > [image: grpcerror.PNG] > > I create the channel on the client like this: > *var channel = new Channel($"http://{ip}:{Port}", > ChannelCredentials.Insecure);* > * _serviceClient = new BridgeService.BridgeServiceClient(channel);* > *var request = new HelloRequest {Name = "Franz"};* > *var reply = _serviceClient.SayHello(request);* > > This is the server side: > *var credentials = ServerCredentials.Insecure;* > *var hostName = Dns.GetHostName();* > > * _port = new ServerPort(hostName, Port, credentials);* > > *_rpcServer = new Server* > *{* > * Services = {BridgeService.BindService(new > BridgeServiceImpl())},* > * Ports = { _port }* > * };* > > *_rpcServer.Start();* > > Any idea what is missing? > Thanks, > Christian > > > > > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/13c9314f-03b0-4c06-8688-cac3cd425d97n%40googlegroups.com.
