Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.


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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


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: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

↑ Back to the top


Status

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

↑ Back to the top


More information

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:
  1. Stop Windows Media Services by running the following command at a command prompt:
    net stop wmserver
  2. In Windows Explorer, change to the following folder where the namespace file is located:
    %SystemRoot%\system32\windows media\server
  3. In Notepad, open the ServerNamespace.xml file.
  4. Locate the Unicast Data Sink node in the namespace.
  5. Locate the WMS Unicast Data Writer subnode after the Unicast Data Sink node.
  6. Locate the Properties subnode under the WMS Unicast Data Writer subnode.
  7. Add the following text under theProperties sub-node:
    <node name="NoFastCacheIfAvgBitrateExceedsPeakBitrate" opcode="create" type="boolean" value="false" />
    If the NoFastCacheIfAvgBitrateExceedsPeakBitrate setting does not exist, the setting is True by default.
  8. Save and then close the ServerNamespace.xml file.
  9. Start Windows Media Services by running the following command at a command prompt:
    net start wmserver
The following code sample describes the changes that were made to the ServerNamespace.xml file:
 <node name="Unicast Data Sink" opcode="create" >
     <node name="Object Store" opcode="create">
         <node name="WMS Unicast Data Writer" opcode="create">
             ...
             <node name="Properties" opcode="create" >
                 ...
                 <node name="NoFastCacheIfAvgBitrateExceedsPeakBitrate" opcode="create" type="boolean" value="false" />
             </node> <!-- Properties -->
             ...
         </node> <!--  WMS Unicast Data Writer --> 
     </node> <!--  Object Store --> 
 </node> <!-- Unicast Data Sink --> 

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:
  1. In the Include folder of the SDK installation, locate the WmsContextNames.h file.
  2. In Notepad or in Microsoft Visual Studio, open the WmsContextNames.h file.
  3. Find the section for the presentation context. This section starts with the following header:
    /////////////////////////////////////////////////////////////////////////////
    //
    //                           PRESENTATION CONTEXT
    //
    /////////////////////////////////////////////////////////////////////////////
    #undef CURRENT_CONTEXT_TYPE
    #define CURRENT_CONTEXT_TYPE     WMS_PRESENTATION_CONTEXT_NAME_TYPE
  4. Add the following name and hint value to the end of the command context values:
    DEFINE_NAME_AND_HINT(WMS_PRESENT_ALL_BYTES_SENT, "WMS_PRESENT_ALL_BYTES_SENT", 83 )
  5. Save the WmsContextNames.h file.
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.

↑ Back to the top


Keywords: KB897173, kbfix

↑ Back to the top

Article Info
Article ID : 897173
Revision : 3
Created on : 10/7/2005
Published on : 10/7/2005
Exists online : False
Views : 435