Skip to content

Commit f973c42

Browse files
gRPC not supported on Azure/IIS (#18374)
* gRPC not supported on Azure/IIS * gRPC not supported on Azure/IIS * gRPC not supported on Azure/IIS
1 parent 478e604 commit f973c42

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

aspnetcore/grpc/aspnetcore.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ uid: grpc/aspnetcore
1212

1313
This document shows how to get started with gRPC services using ASP.NET Core.
1414

15+
[!INCLUDE[](~/includes/gRPCazure.md)]
16+
1517
## Prerequisites
1618

1719
# [Visual Studio](#tab/visual-studio)
@@ -119,7 +121,6 @@ The gRPC API provides access to some HTTP/2 message data, such as the method, ho
119121

120122
[!code-csharp[](~/grpc/aspnetcore/sample/GrcpService/GreeterService2.cs?highlight=6-7&name=snippet)]
121123

122-
[!INCLUDE[](~/includes/gRPCazure.md)]
123124

124125
## Additional resources
125126

aspnetcore/grpc/basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ uid: grpc/basics
1212

1313
This document outlines the concepts needed to write [gRPC](https://grpc.io/docs/guides/) apps in C#. The topics covered here apply to both [C-core](https://grpc.io/blog/grpc-stacks)-based and ASP.NET Core-based gRPC apps.
1414

15+
[!INCLUDE[](~/includes/gRPCazure.md)]
16+
1517
## proto file
1618

1719
gRPC uses a contract-first approach to API development. Protocol buffers (protobuf) are used as the Interface Design Language (IDL) by default. The *\*.proto* file contains:
@@ -70,8 +72,6 @@ By default, server and client assets are generated for each *\*.proto* file incl
7072

7173
Similarly, the attribute is set to `Client` in client projects.
7274

73-
[!INCLUDE[](~/includes/gRPCazure.md)]
74-
7575
## Additional resources
7676

7777
* <xref:grpc/index>

aspnetcore/grpc/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ These benefits make gRPC ideal for:
2626
* Polyglot systems where multiple languages are required for development.
2727
* Point-to-point real-time services that need to handle streaming requests or responses.
2828

29+
[!INCLUDE[](~/includes/gRPCazure.md)]
30+
2931
## C# Tooling support for .proto files
3032

3133
gRPC uses a contract-first approach to API development. Services and messages are defined in *\*.proto* files:
@@ -116,8 +118,6 @@ A gRPC client is created using a channel, which represents a long-lived connecti
116118

117119
For more information on creating clients, and calling different service methods, see <xref:grpc/client>.
118120

119-
[!INCLUDE[](~/includes/gRPCazure.md)]
120-
121121
## Additional resources
122122

123123
* <xref:grpc/basics>

aspnetcore/includes/gRPCazure.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
## gRPC not supported on Azure App Service
2-
31
> [!WARNING]
42
> [ASP.NET Core gRPC](xref:grpc/index) is not currently supported on Azure App Service or IIS. The HTTP/2 implementation of Http.Sys does not support HTTP response trailing headers which gRPC relies on. For more information, see [this GitHub issue](https://github.com/dotnet/AspNetCore/issues/9020).

0 commit comments

Comments
 (0)