0

My VBScript tries to load MSMQ COM Object

Set MSMQQueueInfo = CreateObject("MSMQ.MSMQQueueInfo")

I enabled Messaging DCOM Proxy

enter image description here

Script can't load COM object:

enter image description here

2 Answers 2

0

You need to specify the machine you are creating the queue on.

Using Message Queuing over DCOM

4
  • The error I'm getting happens before there's a chance to worry about machine name. I couldn't create the COM object.
    – Matt
    Sep 2, 2016 at 14:57
  • The object is created using the machine name, not before you specify the machine name. Set qinfo = CreateObject("MSMQ.MSMQQueueInfo", "MyServer.MyDomain.com") Sep 3, 2016 at 10:44
  • As I posted in the question, I'm creating without the name CreateObject("MSMQ.MSMQQueueInfo")
    – Matt
    Sep 6, 2016 at 5:02
  • My assumption (as I can't test it at the moment) is that the proxy needs to know the queue manager to talk to for object creation. If you don't specify then the QM would have to be local. Sep 7, 2016 at 7:56
0

Even though I am not running MSMQ on this server, I still had to install the messaging server to load the COM object:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .