In reference to Q173339, this code works fine if accessing a local queue on the same Server as the IIS is running, but fails if accessing a remote queue
I have provided credentials via Anonymous Logon, and this then works with the Administrator logon, but with no other credentials. The remote queue has "Everyone" and "ANONYMOUS LOGON" with all access priviliges. Both Servers are running Windows 2003 and MSMQ 3.
Code Follow
<
set qInfo = Server.CreateObject ("MSMQ.MSMQQueueInfo")
qInfo.FormatName = "direct=TCP:192.168.1.104\PRIVATE$\testq
Set qQueue = qInfo.Open(32, 0
Set qMessage = qQueue.PeekCurren
If Not qMessage Is Nothing The
Response.Write qMessage.LookupI
End I
%
Cheer
Bryce