SaveAsBlob fails if document includes and image
The save function works fine until the word doc includes an image. Whenever the document includes and image, it is hanging on the SaveAsBlob function and returning the error below. Please advise how to fix?
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in System.Private.CoreLib.dll
An exception of type 'System.Threading.Tasks.TaskCanceledException' occurred in System.Private.CoreLib.dll but was not handled in user code
A task was canceled.
System.Threading.Tasks.TaskCanceledException
HResult=0x8013153B
Message=A task was canceled.
Source=System.Private.CoreLib
StackTrace:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask`1.get_Result()
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask`1.get_Result()
at Syncfusion.Blazor.DocumentEditor.SfDocumentEditor.<InvokeMethod>d__782`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Syncfusion.Blazor.DocumentEditor.SfDocumentEditor.<SaveAsBlob>d__502.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at DocViewer.Pages.Docviewer.<OnSave>d__2.MoveNext() in C:\Users\Adam\source\repos\DocViewer\DocViewer\Pages\Docviewer.razor:line 18
This exception was originally thrown at this call stack:
[External Code]
DocViewer.Pages.Docviewer.OnSave() in Docviewer.razor
Attachment: DocViewer_53b5d8a1.zip
This will be more helpful to reproduce the same issue at our end. Thereby, we will proceed further on the reported issue and provide you the appropriate solution at the earliest.
Note: If you have any confidential data in your document, please replace with some dummy data and provide us the same. We just need above details to recreate the problem you have face.
- 1 Reply
- 2 Participants
-
AV Adam Vieglais
- Nov 5, 2021 04:15 AM UTC
- Nov 8, 2021 09:12 AM UTC