http://localhost:5000 で ASP.NET Core gRPC-Web サーバーを呼び出す .NET Core gRPC-Web クライアントは正常に動作します。
仮想アプリケーション (たとえば、"http://build.mycompany.ca/myapp") を使用して IIS サーバーにデプロイされたサーバーを呼び出す同じクライアント コードは、次のようになります。
Status(StatusCode="Unimplemented", Detail="Bad gRPC response. HTTP ステータス コード: 404")
ASP.NET Core 3.1 サーバーは正しくセットアップされています。すなわち、 app.UseGrpcWeb(new GrpcWebOptions { DefaultEnabled = true });
間にある
app.UseRouting()
と
app.UseEndpoints(endpoints => {
endpoints.MapControllers();
endpoints
.MapGrpcService<GrpcClientService>()
.EnableGrpcWeb();
});
私がここで見逃しているアイデアはありますか?