You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in an InvalidOperationException from within the HttpRequestStream when attempting to copy it's contents to a MemoryStream.
System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
at System.IO.Stream.CopyTo(Stream destination)
at Claunia.PropertyList.PropertyListParser.ReadAll(Stream fs)
at Claunia.PropertyList.PropertyListParser.Parse(Stream fs)
We are currently working around this by allowing synchronous IO but it seems that the preferred approach is to update the code & libraries to use async stream operations.
I realise this is likely a non-trivial change in the plist-cil code but curious to hear your thoughts about this.
The text was updated successfully, but these errors were encountered:
First of all, great work on this library!
We're using it in an ASP.NET Core 3.x web application to parse the plist data in the request body, unfortunately as of 3.0 by default the server is configured to disallow synchronous IO operations.
This results in an
InvalidOperationException
from within theHttpRequestStream
when attempting to copy it's contents to aMemoryStream
.We are currently working around this by allowing synchronous IO but it seems that the preferred approach is to update the code & libraries to use async stream operations.
I realise this is likely a non-trivial change in the plist-cil code but curious to hear your thoughts about this.
The text was updated successfully, but these errors were encountered: