Page 1 of 1

SDK Bugs/Exceptions, Endless Loop

Posted: Tue Feb 04, 2020 10:20 pm
by jasonkhonlaw
I'm using NiceLabel 2019 (19.2) SDK to create a REST endpoint for working with labels. I'm encountering two issues with this:

1. System.BadImageFormatException - Could not load file or assembly EventLogMessages.dll or one of its dependencies. The module was expected to contain an assembly manifest. This dll is part of the NiceLabel SDK. Anyone know what's going on there?

2. Recycling of the AppDomain by making a change to the web.config or putting a new build out causes an endless loop of both of these exceptions:

System.InvalidOperationException in Utils.dll. ErrorService.Handler property must be assigned before being used.

ThreadAbortedException in Utils.dll.

This spikes the CPU and makes the service slow to a crawl.

Anyone else seeing this? I haven't been able to find anything in the documentation to see if I'm doing something wrong, but seems like a bug to me where shutting down the print engine isn't able to actually shut down the threads.