Acccess to .png file denied

Last post 06-29-2009, 5:09 PM by codewarior. 1 replies.
Sort Posts: Previous Next
  •  06-27-2009, 3:03 PM 185711

    Acccess to .png file denied .NET

    Attachment: Present (inaccessible)

    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.

     
  •  06-29-2009, 5:09 PM 185948 in reply to 185711

    Re: Acccess to .png file denied

    Hello Marc,

    Thanks for considering Aspose.

    First of all I apologize for replying you so late.

    Can you please share the resource word file that is causing an issue so that we can test the conversion at our end. Also please share the version information regarding Aspose.Pdf and Aspose.Words that you are using.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML