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/ec2c648f-0efb-4c51-b240-735ce2233ec3n%40googlegroups.com.

Reply via email to