System.Messaging.MessageQueueException was caught
Message="User's internal Message Queuing certificate does not exist."
Source="System.Messaging"
ErrorCode=-2147467259
Above exception occurs when trying to send a message with the following code:
mq.EncryptionRequired = EncryptionRequired.Body;
mq.DefaultPropertiesToSend.Priority = MessagePriority.Highest;
mq.DefaultPropertiesToSend.UseAuthentication = true;
msg.UseEncryption = true;
msg.UseAuthentication = true;
mq.Send(msg);
I have registered certificate in AD (Win2003) and renewed internal
certificate sucessfully to make sure its not corrupted.
On the receiving application before receiving added code:
receivemq.DefaultPropertiesToSend.UseAuthentication = true;
Has the account that is running the application ever interactively logged on
to the machine that is running the application?
This is a common problem if you are using a service account to run the
application.
As the account has never logged in, MSMQ has never created the certificate
for this machine/user combination.
Cheers
John Breakwell (MSFT)
"Suds" <Su...@discussions.microsoft.com> wrote in message
news:DC9AFE9E-5424-4A1D...@microsoft.com...
Both the sender and receiver applications are .net windows services running
under default local system user account. Should I use some other account
(administrator or a user with admin previlages) to run the services? Please
advice.
Suds
Cheers
John Breakwell (MSFT)
"Suds" <Su...@discussions.microsoft.com> wrote in message
news:67D55C74-DCE5-495C...@microsoft.com...
Cheers
John Breakwell (MSFT)