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

Hai,
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=5.0.0.0, 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)

@pooja.jayan

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=6.0.0.0(latest version) fixed the issue. Its working fine now. Thank you for your response

@pooja.jayan

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