An Access Violation May Occur When the Message Queuing Service Reads the Security Descriptor

Article translations Article translations
Article ID: 826820 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry

Expand all | Collapse all

On This Page

SYMPTOMS

When the Microsoft Message Queuing (also known as MSMQ) service is reading the security descriptor from the local queue storage (LQS) file in the Mqmq\storage\lqs directory, an access violation may occur. The following message may be logged in the event log when the service does not start:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date: 7/28/2003
Time: 6:57:52 PM
User: N/A
Computer: Servername
Description: The Message Queuing service terminated unexpectedly. It has done this 1 time(s)

CAUSE

The queue properties are stored in .ini files in the Msmq\storage\lqs directory. The queue properties are read from the queue files by using the GetPrivateProfileString function. The security descriptor can be hundreds of kilobytes (KB) long, but the GetPrivateProfileString function is limited to 64 KB.

RESOLUTION

Hotfix Information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart Requirement

You must restart your computer after you apply this hotfix

File Information

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   14-Aug-2003  23:07  5.0.0.778         281,360  Mq1repl.dll      
   17-Jun-2003  14:33  5.0.0.778          14,096  Mq1sync.exe      
   14-Aug-2003  16:02  5.0.0.782          76,144  Mqac.sys
   14-Aug-2003  23:07  5.0.0.782         217,360  Mqads.dll        
   30-Oct-2002  13:43  5.0.0.761          25,360  Mqbkup.exe       
   14-Aug-2003  23:07  5.0.0.778          76,560  Mqdscli.dll      
   14-Aug-2003  23:07  5.0.0.773          42,256  Mqdssrv.dll      
   21-Oct-2002  17:31  5.0.0.759          98,064  Mqmig.exe        
   14-Aug-2003  23:07  5.0.0.759         265,488  Mqmigrat.dll     
   14-Aug-2003  23:07  5.0.0.740         222,480  Mqoa.dll         
   14-Aug-2003  23:07  5.0.0.762           8,464  Mqperf.dll       
   14-Aug-2003  23:07  5.0.0.782         429,328  Mqqm.dll         
   14-Aug-2003  23:07  5.0.0.778         102,672  Mqrt.dll         
   14-Aug-2003  23:07  5.0.0.776          70,928  Mqsec.dll        
   14-Aug-2003  23:07  5.0.0.781         400,656  Mqsnap.dll       
   14-Aug-2003  23:07  5.0.0.762          23,824  Mqupgrd.dll      
   14-Aug-2003  23:07  5.0.0.782         110,864  Mqutil.dll       
   14-Aug-2003  23:07  5.0.0.748          64,784  Msmq.cpl


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
Message Queuing uses the GetPrivateProfileString function to read properties from the LQS files. This API is limited to 64 KB. Because the security descriptor of public queues can be tens and hundreds of kilobytes long, Message Queuing now uses the file API to read larger files. With this fix, the default setting is to use the file API for files that are longer than 4 KB. The following example changes the default setting from 4K to 64K. Follow these steps, and then quit Registry Editor:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following key in the registry:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Parameters\
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type FileSizeForProfile, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. Type 64, and then click OK.
Queue properties are stored in the LQS directory for both private and public queues. This public queue cache file is only referenced if the Message Queuing service cannot contact a domain controller to obtain properties for a public queue.

REFERENCES

For additional information about how hotfix packages are named, click the following article number to view the article in the Microsoft Knowledge Base:
816915 New Naming Schema for Microsoft Windows Hotfix Packages

Properties

Article ID: 826820 - Last Review: February 27, 2014 - Revision: 3.4
APPLIES TO
  • Microsoft Message Queuing 2.0
Keywords: 
kbnosurvey kbarchive kbhotfixserver kbqfe kbbug kbfix kbqfe kbwin2000presp5fix KB826820

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com