Here is my code. What is interesting about the problem is that if I execute the same code in another ASP .Net application or WinForm application it works just fine or at least I do not get the exception. However there is one application in particular where I seem to get the exception repeatedly. Some times it works but fails most of the time. I even tried calling the same code in the ASP .Net Application_Startup before any of my application code gets executed to try isolating the problem but still got the same results. It is becoming a fairly urgent matter. Any help you can provide will be appreciated.
Thanks,
Emeka.
Aspose.BarCode.BarCodeBuilder bb = new Aspose.BarCode.BarCodeBuilder();
bb.SymbologyType = Aspose.BarCode.Symbology.Code39Standard;
bb.GraphicsUnit = System.Drawing.GraphicsUnit.Pixel;
bb.WideNarrowRatio = 3.0f;
bb.BarHeight = 200.0f;
bb.CodeLocation = Aspose.BarCode.CodeLocation.Below;
bb.CodeTextAlignment = System.Drawing.StringAlignment.Near;
bb.CaptionAbove = new Aspose.BarCode.Caption("");
bb.CodeText = barcode_value;
bb.Resolution = new Aspose.BarCode.Resolution(200, 200, Aspose.BarCode.ResolutionMode.Printer);
System.Drawing.Image image = bb.GenerateBarCodeImage();