activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prgtrdr <>
Subject NMS .NET 4.0 Sandbox Security Question
Date Sun, 14 Jul 2013 20:16:03 GMT
I'm trying to use NMS Version 1.6.0 with my code ('IntPub') that must run in
a sandbox in a .NET 4.0 environment for security reasons.  The code that
creates the sandbox makes my code 'partially trusted' and therefore
'security-transparent' which seems to mean that it can't create a
ConnectionFactory (see error log below) because NMS seems to be
'security-critical'.  Here's the code that's causing this error:

        connecturi = new Uri("tcp://");
        var connectionFactory = new ConnectionFactory(connecturi);

I also tried this instead with similar results:

        connecturi = new Uri("activemq:tcp://");
        var connectionFactory =

Since I can't change the security level of my assembly (the sandbox prevents
it) is there a way to make NMS run as 'safe-critical' so it can be called by
'security-transparent' code?

I appreciate any help or suggestions...


Assembly 'IntPub, Version=, Culture=neutral,
PublicKeyToken=6fa620743b8dc60a' is partially trusted, which causes the CLR
to make it entirely security transparent regardless of any transparency
annotations in the assembly itself.  In order to access security critical
code, this assembly must be fully trusted.Detail: 
  <Message>Unexpected exception from plug-in (Execute): Samples.WebClient:
System.MethodAccessException: Attempt by security transparent method
'Samples.WebClient.Execute(System.IServiceProvider)' to access security
critical method 'Apache.NMS.ActiveMQ.ConnectionFactory..ctor(System.Uri)'

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message