We are trying to send NServiceBus messages from a Microsoft Dynamics CRM plugin and running into issues like this:
Attempt by security transparent method [Our_Namespace].GetStandardBus(System.String)' to access security critical type 'NServiceBus.IBus' failed at [Our_Namespace].GetStandardBus(String endpointName)
The CRM plugins are running in the sandbox which means they are running as partial trust in IIS and we really want to keep it that way.
So my question is, is it possible to access NServiceBus from an IIS partial trust application?
Thanks, Mark
Check out the Dynamics Adapter for NServiceBus:
https://github.com/ParticularLabs/NServiceBus.DynamicsAdapter