This project has moved. For the latest updates, please go here.

KeyNotFoundException

Topics: Code 39
Oct 5, 2011 at 10:09 PM

I have an ASP.NET GridView containing a single Zen.Barcode.Web.BarcodeLabel (Code39NC) within each row. On average the GridView has about 10-15 rows. Occasionally a few of the barcodes fail to render. After inspecting the error log I can see that the following exception is being thrown:

8/3/2011 3:01:25 PM MyApp: MyApp ErrorSystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at Zen.Barcode.Web.BarcodeImageHandler.AsyncHandler.EndAsyncWork()
at Zen.Barcode.Web.BarcodeImageHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)

We're using the latest Zen.Barcode 2.2.0.0 release.

Has anyone else encountered this?