"Runtime Error 91: Object variable or with block variable not set" error with Microsoft Message Queuing Triggers (327245)



The information in this article applies to:

  • Microsoft Message Queue Server (MSMQ) 1.0
  • Microsoft Message Queuing 2.0

This article was previously published under Q327245

SYMPTOMS

You receive the following error in Microsoft Message Queue Server 1.0 and in Microsoft Message Queuing 2.0 when you delete a Message Queuing Trigger object:
"Runtime Error 91: Object variable or with block variable not set"

CAUSE

By default, there is no discretionary access control list (DACL) on the access permissions. A NULL DACL indicates that the Everyone group has full control. Therefore, if you add permissions through DCOMCnfg.exe, the implicit Everyone group disappears.

RESOLUTION

To resolve this problem, explicitly add the Everyone group to the trigger service permissions in DCOMCnfg.exe.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MajorLast Reviewed:9/19/2005
Keywords:kbbug kbfix KB327245