You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/grpc/troubleshoot.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ var client = new Greet.GreeterClient(channel);
70
70
71
71
## Call insecure gRPC services with .NET Core client
72
72
73
-
Additional configuration is required to call insecure gRPC services with the .NET Core client. The gRPC client must set the `System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport` switch to `true` and use `http` in the server address:
73
+
When an app is using .NET Core 3.x, additional configuration is required to call insecure gRPC services with the .NET Core client. The gRPC client must set the `System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport` switch to `true` and use `http` in the server address:
74
74
75
75
```csharp
76
76
// This switch must be set before creating the GrpcChannel/HttpClient.
@@ -82,6 +82,8 @@ var channel = GrpcChannel.ForAddress("http://localhost:5000");
82
82
varclient=newGreet.GreeterClient(channel);
83
83
```
84
84
85
+
.NET 5 apps don't need additional configuration, but to call insecure gRPC services they must use `Grpc.Net.Client` version 2.32.0 or later.
86
+
85
87
## Unable to start ASP.NET Core gRPC app on macOS
86
88
87
89
Kestrel doesn't support HTTP/2 with TLS on macOS and older Windows versions such as Windows 7. The ASP.NET Core gRPC template and samples use TLS by default. You'll see the following error message when you attempt to start the gRPC server:
0 commit comments