Microsoft KB Archive/897173

= FIX: The Admin MMC snap-in sometimes displays a negative value for the current bandwidth in Windows Media Services 9 Series =

Article ID: 897173

Article Last Modified on 10/7/2005

-

APPLIES TO


 * Microsoft Windows Media Services 9 Series
 * Windows Media Services 9 Series Software Development Kit
 * Microsoft Windows Server 2003 Service Pack 1

-



Warning This article contains information about editing the namespace. Before you edit the namespace, verify that you have a backup copy that you can restore if a problem occurs. If you edit the namespace incorrectly, you can cause serious problems that may require you to reinstall any product that uses the namespace. Microsoft cannot guarantee that problems that result if you incorrectly edit the namespace can be solved. Edit the namespace at your own risk.



SUMMARY
This hotfix addresses the following two issues in the Microsoft Windows Media Services 9 Series:
 * A bug where the Windows Media Services Admin Microsoft Management Console Snap-in sometimes displays a negative value for the current bandwidth.
 * A new context value is required to obtain more information about the bandwidth of a connected client.



CAUSE
These issues occur because the server incorrectly calculates the accelerated streaming rate for certain pieces of content. This behavior causes the server to incorrectly allocate bandwidth. In certain cases, the server would allocate bandwidth to a negative value.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next release that contains this hotfix.

To resolve this problem immediately, 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.

Microsoft Windows Server 2003 on x86-based computers
The following file is available for download from the Microsoft Download Center:

Download the WindowsMedia9-KB897173-x86-ENU.exe package now.

Windows Server 2003 x64 Editions
The following file is available for download from the Microsoft Download Center:

Download the WindowsMedia9-KB897173-x64-ENU.exe package now.

For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

The English version of this hotfix has the file attributes (or later file attributes) 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      Platform --  08-Apr-2005  10:56  9.1.1.3829  2,962,944  Wmsserver.dll  x86 08-Apr-2005 11:40  9.1.1.3829  5,814,272  Wmsserver.dll  x64



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Enable or disable the negative value fix
To enable or to disable the negative value fix part of this hotfix, configure a setting in the ServerNamespace.xml file. To disable this setting, follow these steps:   Stop Windows Media Services by running the following command at a command prompt: net stop wmserver   In Windows Explorer, change to the following folder where the namespace file is located: %SystemRoot%\system32\windows media\server  In Notepad, open the ServerNamespace.xml file. Locate the Unicast Data Sink node in the namespace. Locate the WMS Unicast Data Writer subnode after the Unicast Data Sink node.</li> Locate the Properties subnode under the WMS Unicast Data Writer subnode.</li>  Add the following text under theProperties sub-node: <node name=&quot;NoFastCacheIfAvgBitrateExceedsPeakBitrate&quot; opcode=&quot;create&quot; type=&quot;boolean&quot; value=&quot;false&quot; /> If the NoFastCacheIfAvgBitrateExceedsPeakBitrate setting does not exist, the setting is True by default. </li> Save and then close the ServerNamespace.xml file.</li>  Start Windows Media Services by running the following command at a command prompt: net start wmserver </li></ol>

The following code sample describes the changes that were made to the ServerNamespace.xml file: <node name=&quot;Unicast Data Sink&quot; opcode=&quot;create&quot; > <node name=&quot;Object Store&quot; opcode=&quot;create&quot;> <node name=&quot;WMS Unicast Data Writer&quot; opcode=&quot;create&quot;> ...            <node name=&quot;Properties&quot; opcode=&quot;create&quot; > ...                <node name=&quot;NoFastCacheIfAvgBitrateExceedsPeakBitrate&quot; opcode=&quot;create&quot; type=&quot;boolean&quot; value=&quot;false&quot; /> ...

Use the new WMS_PRESENT_ALL_BYTES_SENT context value
With this update, a new presentation context value has been added to obtain the total number of bytes that are sent to a client. This new context value is a QWORD value.

To use this value, you must update the WmsContextNames.h file that is included with the Windows Media Services SDK 9 Series to include the new context value. To do this, follow these steps: <ol> In the Include folder of the SDK installation, locate the WmsContextNames.h file.</li> In Notepad or in Microsoft Visual Studio, open the WmsContextNames.h file.</li>  Find the section for the presentation context. This section starts with the following header: ///////////////////////////////////////////////////////////////////////////// // //                          PRESENTATION CONTEXT // /////////////////////////////////////////////////////////////////////////////  Add the following name and hint value to the end of the command context values: DEFINE_NAME_AND_HINT(WMS_PRESENT_ALL_BYTES_SENT, &quot;WMS_PRESENT_ALL_BYTES_SENT&quot;, 83 ) </li> Save the WmsContextNames.h file.</li></ol>
 * 1) undef CURRENT_CONTEXT_TYPE
 * 2) define CURRENT_CONTEXT_TYPE    WMS_PRESENTATION_CONTEXT_NAME_TYPE </li>

The WMS_PRESENT_ALL_BYTES_SENT context value is available when you use this context value with version 9.1.1.3829 of the Windows Media Services or a later version.

Keywords: kbfix KB897173

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.