We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Barcode throws exception

We use Aspose Barcode in a user control ,and most of the times it throw below exception: (Same configuration always)

Parameter is not valid.

[ArgumentException: Parameter is not valid.]

System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)

It will be fixed temporary after iisreset only.

Hi Hiba,


Thank you for contacting support. Your sample code is not complete. For example, we are initializing a Barcode class, but no reference or code is available. Please prepare a sample project that we could execute on our side and attach it with your reply. It will help us to be more specific.