We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.IO.FileLoadException: 'Could not load file or assembly

When I try to convert a pdf document to docx, following exception is being thrown
“System.IO.FileLoadException: ‘Could not load file or assembly ‘System.Security.Permissions, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The located assembly’s manifest definition does not match the assembly reference. (0x80131040)’”

I am using a licensed version of Aspose, I got this exception after upgraded Aspose words and pdf to latest version. It was working fine before

bug.PNG (20.8 KB)


Could you please attach your input PDF file along with sample code example that you are using to reproduce the same issue at our end. We will investigate the issue and provide you more information on it.

Installing System.Security.Permissions, Version= version) fixed the issue. Its working fine now. Thank you for your response


Thanks for your feedback. Please feel free to ask if you have any question about Aspose.PDF, we will be happy to help you.