According to this post in Microsoft Doc and this warning section:
ASP.NET Core gRPC has extra requirements for being used with Azure App Service or IIS. For more information on where gRPC can be used, see gRPC on .NET supported platforms.
I created an ASP.Net Core gRPC
service in .NET 5
with Grpc.AspNetCore(2.34.0)
package using above document guidline.
I hosted my service in IIS as for this document
My problem: I get an error in the call RPC
method from the Client.
Given Error:
Status(StatusCode="Cancelled", Detail="No grpc-status found on response.")
Additional: I have searched on the web and investigate many issues, But these issues not help me. still, I have this error. I guess have a miss understanding or missed issue about this action.
My primary question: Actually is possible to Hosting ASP.NET Core Grpc Service in IIS at this time.
OS
: Windows Server 2019 Version 1809 Build 17763.1697
IIS
: Version 10.0.17763.1
Client Code:
using var channel = GrpcChannel.ForAddress("https://192.168.13.155");
var client = new ProccessMessage.ProccessMessageClient(channel);
try
{
var result = client.GetMessage(new Request { Name = "Message" });
}
catch (RpcException ex)
{
string message = ex.Message;
}
I get this exception: Status(StatusCode="Cancelled", Detail="No grpc-status found on response.")
in catch block.
Windows Server 2019 - for hosting gRPC with IIS using (in-process) .NET 5 is not yet supported!