Link to home
Start Free TrialLog in
Avatar of REA_ANDREW
REA_ANDREWFlag for United Kingdom of Great Britain and Northern Ireland

asked on

iText Pdf Behaviour

Itext is a free java pdf creation library, it has been ported to .NET.  I have been developing with it on my local machine which is running windows vista.

DEPLOYMENT ERRORS:

Window Server 2003 32 bit machine:
Exception of type 'java.net.ConnectException' was thrown.

Windows Server 2003 64 bit machine
Could not load file or assembly 'Apache.Crimson' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Now  I believe that the second error is becuase this component was not designed to run in a 64 bit environment.

THE FIRST ISSUE I would like to resolve as I believe it to be a firewall or web service permissions issue.  Basically the stack trace is as so:


[ConnectException: Exception of type 'java.net.ConnectException' was thrown.]
   com.ms.vjsharp.protocol.http.VJSHttpURLConnection.__initWebResponse(Boolean isConnecting) +428
   com.ms.vjsharp.protocol.http.VJSHttpURLConnection.getInputStream() +45
   java.net.URL.openStream() +28
   com.lowagie.text.Image.getInstance(URL url) +43
   com.lowagie.text.Image.getInstance(String filename) +13
   com.zaffooacutionware.pdf.PdfCreator.GetPdf(Int32 auctionHouseID, Int32 physicalAuctionId) +2565
   ZaffoWebApplicationFinal.AuctionHouseSite.PdfBrochure.Page_Load(Object sender, EventArgs e) +93
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

The library gets a stream when importing images and i believe that to be the issue but again i could be wrong.  It works fine on my local machine.  

Source Website: http://www.ujihara.jp/iTextdotNET/en/

Cheers

Andrew
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of REA_ANDREW

ASKER

Cheers