Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all
I am Working on a web Service that should Generate Word and PDF Documents using Xml File , and I used Word Automation for that to Generate word docs and then Save it as PDF is Required no as Console Application its work
Fine , I try to Convert it to Web Page , Its worked fine while its been running on visual studio internal web Server but once I run it On IIS7 or 6 its brake down Security Issues regarding Calling COM Object from Web I try impersonation but with no luck I tweak registry , ... its not working further after the call to the word object is over the WinWord Process still running and each time you run the come new instance of WinWord is Added , I thought If I can call the Console from Web Service that might Solve the COM Security Problem .
Posted

Maybe try checking the Identity of the application pool that runs the web service and make sure that that user can run the applications you want to run...
 
Share this answer
 
Your english/grammar makes it difficult to understand your question. What error are you seeing, and at what point in the process?

Our team does something similar but in reverse. A request to a webpage for a PDF causes a console app running on a separate server to retrieve the PDF, open and split it into PNG and XML files with the text content. The output files are stored across the LAN to a UNC cache share where the original web request picks it up and displays it to the user... Similar to how Google PDF viewer works. The two processes are tied together through a SQL request table that they both monitor. The only issues we've ran into are security/permission related on the app pool and cache folder.

There may be a better/faster/easier pdf library you can use. We use iTextSharp and pdfSharp libraries when we need to generate PDF files. For splitting the PDF into images we're using a different library that we licensed I can get that name if would help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900