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
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)
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.
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:
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.
No prerequisites are required.
You must restart your computer after you apply this hotfix
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.
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:
Click Start, click Run, type regedit, and then click OK.
Locate and then click the following key in the registry:
On the Edit menu, point to New, and then click DWORD Value.
Type FileSizeForProfile, and then press ENTER.
On the Edit menu, click Modify.
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.
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