Microsoft KB Archive/872878

= FIX: WMS_PRESENT_ORIGINAL_REQUEST_NAME may not display the port number for MMS requests =

Article ID: 872878

Article Last Modified on 7/28/2004

-

APPLIES TO


 * Microsoft Windows Media Services 9 Series
 * Windows Media Services 9 Series Software Development Kit

-



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:

Download 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 &quot;Applies to&quot; 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:  In the include directory of the SDK installation, locate the WmsContextNames.h file. In a text editor such as Notepad or Microsoft Visual Studio, open the WmsContextNames.h file.  Find the section for the command context. This section starts with the following header: ///////////////////////////////////////////////////////////////////////////// // //                          COMMAND CONTEXT // /////////////////////////////////////////////////////////////////////////////  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, &quot;@WMS_COMMAND_CONTEXT_ORIGINAL_MMS_URL&quot;, 165 )  Save the WmsContextNames.h file.</ol>
 * 1) undef CURRENT_CONTEXT_TYPE
 * 2) define CURRENT_CONTEXT_TYPE    WMS_COMMAND_CONTEXT_NAME_TYPE </li>

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.

Additional query words: WMS WMS_PRESENT_ORIGINAL_REQUEST_NAME MMS missing

Keywords: kbfix KB872878

-

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

© Microsoft Corporation. All rights reserved.