Subject: Any sample of SP initiated MVC with framework targeting .net 6.0
Date: 2023-04-01 07:16:07
From: sarojekka
Source: sample-sp-initiated-mvc-framework-targeting-net-6-0
----------------------------------------------------------------------

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 )

----------------------------------------------------------------------

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