Hello,
I am using Aspose.PDF and Aspose.Words to convert a Word document to PDF from an ASP.NET website. It works just fine normally. However, if I paste an image inside the Word document, it gives an error - Access denied. I am creating the files in a network share. The issue happens only when I run the website after deploying it to the webserver. That is, if I hit the url http://servername/virtualdirectoryname. If I debug the website from my desktop - inside the Visual Studio Studio - it works just fine. In the code, I am doing Impersonation so that the portion of code that creates the file is run under my special user account which has full control permissions at the network share. After the file IO operation, I undo the impersonation. The impersonation part is also working fine, and I am using this in many other systems, and it is because of this code that I am able to create PDF files if there are no images inside the Word document. More details are there in the attached document. Any help to fix this issue is much appreciated.
Thanks in advance.