Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Aug 22, 2024 11:48 am

Hi.

When opening a document, the following error occurs:

"Unhandled Exception: System.InvalidCastException: Arg_InvalidCastException
at System.Runtime.TypeCast.CheckCastClass(MethodTable*, Object) + 0x31
at SkiaSharp.SKAbstractManagedStream.ReadInternal(IntPtr s, Void* context, Void* buffer, IntPtr size) + 0xc4
at Spire.Doc.Base!<BaseAddress>+0x1bc7b5c"

I don't know the cause of the error and I'm having trouble dealing with it.
Could you help me to overcome this issue.

abetakuya
 
Posts: 1
Joined: Thu Aug 22, 2024 11:21 am

Fri Aug 23, 2024 8:56 am

Hello,

Thank you for your inquiry.You can try updating your SkiaSharp library before testing. If the problem still exists, in order to help us investigate and resolve your issue more quickly, please provide us with your detailed operating environment information and your original input docx document.You can upload here or send it to us via email( support@e-iceblue.com ). Thank you in advance.

e.g.
Local: Windows 10 64-bit
Validation Environment: Ubuntu 24.04 LTS(if use)
Versions Used: Spire.DOC for .NET:12.8.2
.NET version: .NET 6

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 277
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.Doc