I cannot seem to figure out how to format the queue path. I have never used MSMQ before. I set it up, create a private queue called test, and want to try sending a message.
I am using Visual Studio, ASP.NET, webforms, C#.
protected void Page_Load(object sender, EventArgs e)
{
SendPrivateTx();
}
public void SendPrivateTx()
{
MessageQueue rmQ = new MessageQueue("jsmith528/private$/test");
rmQ.Send("message", MessageQueueTransactionType.Single);
}
This is the code I'm using. I get an error on the line after the new MessageQueue that states:
An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code
Additional information: Length cannot be less than zero.
I am sure this is the result of not having the correct path. I'm using Windows 10.