Getting an error while uploading videos
I am trying to upload a video from a .NET Core application. If the file is very small it uploads correctly. But when the file size increases I get the following error.
An unhandled exception occurred while processing the request.
SocketException: The I/O operation has been aborted because of either a thread exit or an application request.
Unknown location
IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
HttpRequestException: Error while copying content to a stream.
System.Net.Http.HttpContent.CopyToAsyncCore(ValueTask copyTask)
TaskCanceledException: The operation was canceled.
I see that someone else has the same problem but there is no solution for it yet.
0
-
Hi Nasir,
Would you mind sharing a relevant code snippet that will help us try and reproduce the issue?
Also, I found a SO thread that has a few solutions -
https://stackoverflow.com/questions/35724514/web-api-request-throws-error-while-copying-content-to-a-stream
Let me know if that helps?0
Post is closed for comments.
Comments
1 comment