Subject: .net 6.o getting error "SamlException: Unable to write Form data to the response stream" on sending request to IDP url Date: 2023-04-01 06:54:03 From: sarojekka Source: net-6-o-getting-error-samlexception-unable-write-form-data-response-stream-sending-request-idp-url ---------------------------------------------------------------------- AuthRequest.SendHttpPost(Response, idpUrl, relayState); stackstrace: SamlException: Unable to write Form data to the response stream. -->Inner Exception InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. Stack Trace: at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) at Microsoft.AspNetCore.Server.IIS.Core.WrappingStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.IO.Stream.Write(ReadOnlySpan`1 buffer) at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.IO.StreamWriter.Write(String value) at c_b.c_759a07c9(Stream ) ---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index