Closed heyhumor closed 2 months ago
@greendreamer Thank you for your reply. I found the cause of the issue—it was due to the virtual machine. The error occurred on the VM Ware win11 virtual machine, but after installing it on a physical machine, it worked fine.
What could be the differences in the virtual machine environment? Could it be due to the underlying libraries?
I am using .NET 8.0 with VS2022, and the program compiles and runs normally on Windows 10 (version 10.0.19045.4780). However, it encounters an issue when running on Windows 11 (version 11.0.22631.2681). The execution fails when trying to load with "Document doc = new Document(pdfPath);", and the exception message shows: "The type initializer for 'MuPDF.NET.Document' threw an exception." Could you please let me know if Windows 11 is supported? Is there a solution for this issue? Thank you!