Ensure that MSMQ has been installed.
This sample shows basic usage of MSMQ as a transport for NServiceBus. The application sends an empty message to itself, via the MSMQ transport, and writes to the console when the message is received.
var endpointConfiguration = new EndpointConfiguration("Samples.Msmq.Simple"); // MSMQ is the default transport // calling endpointConfiguration.UseTransport<MsmqTransport>() isn't necessary.
Other settings such as DeadLetterQueue, Journal behavior, etc., can also be configured via the connection string.