I am getting access denied error when i am trying to genarate PDF file using WCF service.Here is the sample code.
ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document();
ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page(PageSize.Letter, PageOrientation.Portrait, 54.0f);
page.Elements.Add(new TextArea(content, 0, 0, 600, 800, Font.Helvetica, 12, TextAlign.Left));
document.Pages.Add(page);
document.Draw(Constants.BEHAVIORALLETTERNAME);
System.Diagnostics.Process.Start(Constants.BEHAVIORALLETTERNAME);
Genearting PDF From WCF Service
Re: Genearting PDF From WCF Service
Support · Sep 24, 2009Hello,
We have not seen any problem in using our product with WCF service. We are able to use our product with WCF service application without any problem. As the error shows you do not have permission to access some objects or dlls. We will need to see full error message and stack trace in order to look into this. Please send over the full stack trace of the error to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.
Re: Genearting PDF From WCF Service
Forum member · Sep 24, 2009I am getting following error
"Access to the path 'c:\\windows\\system32\\inetsrv\\BehavioralLetter.pdf' is denied."
Re: Genearting PDF From WCF Service
Support · Sep 24, 2009Hello,
It looks like you are saving the PDF in a System32 folder where you do not have permission to open the PDF again using the Process.Start method. Please try saving the PDF (using the Draw method) in a temporary folder where you have permissions to open the PDF again. ex: C:\Temp\file.pdf. Then try opening this PDF using the Process.Start method.
Thanks,
ceTe Software Support Team.