diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration/Server/IISHttpContext.cs b/src/Microsoft.AspNetCore.Server.IISIntegration/Server/IISHttpContext.cs index 6b33a6d342..5f1c6ac894 100644 --- a/src/Microsoft.AspNetCore.Server.IISIntegration/Server/IISHttpContext.cs +++ b/src/Microsoft.AspNetCore.Server.IISIntegration/Server/IISHttpContext.cs @@ -583,7 +583,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration { var pDataChunks = stackalloc HttpApiTypes.HTTP_DATA_CHUNK[1]; - fixed (byte* pBuffer = &buffer.First.Span.DangerousGetPinnableReference()) + fixed (byte* pBuffer = &MemoryMarshal.GetReference(buffer.First.Span)) { ref var chunk = ref pDataChunks[0];