FIX: WMS_PRESENT_ORIGINAL_REQUEST_NAME may not display the port number for MMS requests (872878)



The information in this article applies to:

  • Microsoft Windows Media Services 9 Series
  • Microsoft Windows Media Services 9 Series SDK

SYMPTOMS

If the client makes a request by using the Microsoft Media Server protocol (MMS protocol), and the request specifies a port number, the port number is not reported in the context value.

CAUSE

This problem occurs if the server in the MMS protocol scenario does not copy the port number to the context string.

RESOLUTION

To resolve this problem, download and run the WindowsMedia9-KB872878-x86-ENU.exe file.

The following file is available for download from the Microsoft Download Center:
DownloadDownload the WindowsMedia9-KB872878-x86-ENU.exe package now.

For additional 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 to prevent any unauthorized changes to the file.

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
   --------------------------------------------------------------
   01-Jul-2004  04:29  9.0.0.3382      2,783,232  Wmsserver.dll    

STATUS

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

MORE INFORMATION

A developer can write a custom plug-in for the Microsoft Windows Media Services 9 Series that retrieves certain context values from the server. The WMS_PRESENT_ORIGINAL_REQUEST_NAME context value, the WMS_PRESENT_REQUEST_NAME context value, and the WMS_COMMAND_CONTEXT_URL context value must have the URL request that the client makes.

Because of issues with the way that the server internally maintains the MMS port number when streaming occurs through a proxy server, a new context value has been added to the server so that a developer can programmatically retrieve this 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 directory of the SDK installation, locate the WmsContextNames.h file.
  2. In a text editor such as Notepad or Microsoft Visual Studio, open the WmsContextNames.h file.
  3. Find the section for the command context. This section starts with the following header:
    /////////////////////////////////////////////////////////////////////////////
    //
    //                           COMMAND CONTEXT
    //
    /////////////////////////////////////////////////////////////////////////////
    #undef CURRENT_CONTEXT_TYPE
    #define CURRENT_CONTEXT_TYPE     WMS_COMMAND_CONTEXT_NAME_TYPE
  4. Add the following name and hint value to the end of the command context values:
    DEFINE_NAME_AND_HINT( WMS_COMMAND_CONTEXT_ORIGINAL_MMS_URL, "@WMS_COMMAND_CONTEXT_ORIGINAL_MMS_URL", 165 )
  5. Save the WmsContextNames.h file.
The WMS_COMMAND_CONTEXT_ORIGINAL_MMS_URL context value and the WMS_COMMAND_CONTEXT_ORIGINAL_MMS_URL_ID context value are available when these context values are used with version 9.0.0.3382 of the server.

Modification Type:MajorLast Reviewed:7/28/2004
Keywords:kbfix KB872878 kbAudDeveloper