Hi there, I have application that fill a PDF template with data from a web page ( vb.net), it *works fine on my development ambient* (win xp 64/ iis6) but when I upload to my web server (Win Server 2008 R2/iis 7.5) it stops working. The application build fine but generate a exception every time I try to run it.
The PDF is in the right place, I can open it from the browser. The folder have all the permissions to write and read. Any ideas? Cheers. *Error Message:* *Error Message* C:\inetpub\wwwroot\pdf\certificate.pdf not found as file or resource. *Stack Trace* at iTextSharp.text.pdf.RandomAccessFileOrArray..ctor(String filename, Boolean forceRead) at iTextSharp.text.pdf.PdfReader..ctor(String filename, Byte[] ownerPassword) at iTextSharp.text.pdf.PdfReader..ctor(String filename) at MortgageHouse.get_a_home_loan_pre_approval_now.GeneratePdf(Decimal decBorrowingCapacity, Int32 intLeadId) at MortgageHouse.get_a_home_loan_pre_approval_now.InsertLead(Decimal decBorrowingCapacity) at MortgageHouse.get_a_home_loan_pre_approval_now.btnSubmit_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain() *Stack Trace* at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -- ________________________ Thiago Campos cre...@gmail.com -- View this message in context: http://itext-general.2136553.n4.nabble.com/ItextSharp-pdf-not-found-as-file-or-resource-tp3208216p3208216.html Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php