we are migrating to asp.net core with framework targetting to .net 6.0.
we got the latest dll and applied license too.
there is no compilation issue but at run time getting following error on sending request for sign on to 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 )
asked 4/1/2023 7:16:07 AM