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

Free Support Forum - aspose.com

Could not load file or assembly 'Aspose.Pdf' or one of its dependencies. Access is denied

Hi I am getting below exception details when using Aspose.Pdf

This use to work before recently we have switched to new web server.

Any help is much appreciated.

Could not load file or assembly 'Aspose.Pdf' or one of its dependencies. Access is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Aspose.Pdf' or one of its dependencies. Access is denied.

Hi Santosh,


Thanks for your feedback. It seems some privileges difference in your both servers. Please double check it, hopefully it will resolve the issue.

Moreover, Please note Aspose .NET components are recommended to run with Full Trust permission set. This is because Aspose .NET component sometimes need to access registry settings and files located in places other than the virtual directory e.g. for reading fonts etc. Furthermore, Aspose .NET components are based on core .NET system classes, some of which also require Full Trust permission to run in some cases. You may verify permissions on both server.

Best Regards,