Michael Kelly created AMQNET-736: ------------------------------------ Summary: NMSConnectionFactory ArgumentNullException for single file applications Key: AMQNET-736 URL: https://issues.apache.org/jira/browse/AMQNET-736 Project: ActiveMQ .Net Issue Type: Bug Components: NMS Reporter: Michael Kelly
[NMSConnectionFactory |https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L340]uses the location of the NMS assembly to do some dynamic loading of assemblies, which can be null in some cases such as when the assembly is bundled with an application. This causes a null ref [later in the execution|https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L272]. I honestly don't understand enough of what's going on here to suggest a fix, but it makes the library unusable for single file applications. I can try setting up a repro if required, but currently was using the library through MassTransit, so not too sure how i can set it up directly or cleanly. -- This message was sent by Atlassian Jira (v8.3.4#803005)