There's only one thread running the batch process, so after your answer, I tried but failed to reproduce the issue in a test project.
But by investigating, I found the folowing exception in my logs :
2014-12-09 15:11:30.7349 | FATAL: EXCEPTION: Exception : InvalidOperationException
Failed to load embedded assembly: Accès refusé. (Exception de HRESULT : 0x80070005 (E_ACCESSDENIED))
à ImageMagick.ResourceLimits.set_Thread(UInt64 value)
Magick.NET-AnyCPU
The issue is while setting the ResourceLimits.Thread property, not while using Magick.net. And it only happens while running in IIS, not in VS...
The magick.net assembly seems loaded, as the resize process work correctly...
But by investigating, I found the folowing exception in my logs :
2014-12-09 15:11:30.7349 | FATAL: EXCEPTION: Exception : InvalidOperationException
Failed to load embedded assembly: Accès refusé. (Exception de HRESULT : 0x80070005 (E_ACCESSDENIED))
à ImageMagick.ResourceLimits.set_Thread(UInt64 value)
Magick.NET-AnyCPU
The issue is while setting the ResourceLimits.Thread property, not while using Magick.net. And it only happens while running in IIS, not in VS...
The magick.net assembly seems loaded, as the resize process work correctly...