161
Views
3
Comments
Access Denied on downloaded PDF
Question

Hi all,

We have a reactive web application and we are using UltimatePDF and when we try to download a PDF, sometimes it works as expected but there are times where the content of the generated PDF looks like this:


Also, this only happens on PROD and we don't encounter this error on our other environments.

If you have any ideas what might be causing this, please let me know. Thank you

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Anne,

I guess the application is not able to access some of the directory in the PROD server from where it is trying to access the PDF file or any other reference/library/resource files. 

Solution: Access the Prod Env server machine and check the Directory permissions level and settings, and grant the permission accordingly (may be you will have to Create Everyone Group with Read & execute control level).

Hope this helps you!


Regards,

Benjith Sam

UserImage.jpg
Anne Trixia Mirones

Benjith Sam wrote:

Hi Anne,

I guess the application is not able to access some of the directory in the PROD server from where it is trying to access the PDF file or any other reference/library/resource files. 

Solution: Access the Prod Env server machine and check the Directory permissions level and settings, and grant the permission accordingly (may be you will have to Create Everyone Group with Read & execute control level).

Hope this helps you!


Regards,

Benjith Sam

 Hi Benjith,

I appreciate your reply, just have another question. The PDF sometimes work and sometimes, it doesn't. Would permissions still be the problem for this case?

Thanks.  

 

2021-03-18 21-03-15
Benjith Sam
 
MVP

Anne Trixia Mirones wrote:

Hi Benjith,

I appreciate your reply, just have another question. The PDF sometimes work and sometimes, it doesn't. Would permissions still be the problem for this case?

Thanks.

Hi Anne,

Based on my project working experience, whenever I encountered such issues dealing with PDF generation, I would follow the below mentioned steps which in most of the case resolves the problem

1) Check the the PDF Screen with Anonymous role

2) Grant permission for Everyone to the Server directory which is used by the Application i.e in which the application resides and it's resource directory

Hope this helps you!


Regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.