[zeromq-dev] SEHException when calling zmq_init from clrzmq

Tom Robinson Tom.Robinson at artesiansolutions.com
Mon Jun 18 16:25:58 CEST 2012

Hi All,

I'm using the latest version of clrzmq and having problems with an SEHException when zmq_init is called. It only happens when running as an IIS web application on the QA server, it runs fine under IIS on my local machine.

This is the version of clrzmq (i.e the latest at time of writing):

The latest clrzmq currently uses libzmq 3.1.1-beta1

I've even tried updating libzmq to version 3.2.0rc1 and using zmq_ctx_new instead of zmq_init but I still get the same error.

Unfortunately the ErrorCode is -2147467259 (i.e. not set?) and there's no further information available through the debugger.

I have tried changing various permissions, the web application is running in Full Trust, as Network Service. The machine has been rebooted.

Has anyone come across this before?


Server Error in '/' Application.
External component has thrown an exception.

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:
System.Runtime.InteropServices.SEHException: External component has thrown an exception.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[SEHException (0x80004005): External component has thrown an exception.]
   ZeroMQ.Interop.ContextProxy.Initialize() in C:\projects\clrzmq\src\ZeroMQ\Interop\ContextProxy.cs:25
   ZeroMQ.ZmqContext.Create(Int32 threadPoolSize) in C:\projects\clrzmq\src\ZeroMQ\ZmqContext.cs:83
   ZeroMQ.ZmqContext.Create() in C:\projects\clrzmq\src\ZeroMQ\ZmqContext.cs:66


Windows Server 2008 R2 Standard SP1
Virtual Machine (on Hyper-V)


Tom Robinson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120618/aa92b9fd/attachment.htm>

More information about the zeromq-dev mailing list