none
How to I include "Microsoft.WindowsMediaServices.Interop"?? RRS feed

  • Question

  • I am using VS 2015 and trying to build a C# application that allows users to create playlists of training videos and play.

    I found code that looked like a great starting point - in Windows Dev Center Developer Resources - the page title is "Using the Server Object Model to Define Playlists."  That page and its sub-pages look great.  

    The code uses 2 library references:
    using interop_msxml
    using Microsoft.WindowsMediaServices.Interop.

    Both of those reference names showed up as not existing in the namespace.

    I was able to resolve the \error for interop_msxml by adding a reference to the project for Microsoft XML, v6.0 (in the COM group of the "Add Reference" Dialogue Box).

    I have not been able to resolve the error for Microsoft.WindowsMediaServices.Interop. I have been searching under that name, and under the class name "WMSServerClass" to try to find out what reference I should add.

    PLEASE - Can anyone explain to me how I can use "Microsoft.WindowsMediaServices.Interop"??

    As mentioned, I am using VS 2015.  My computer is running Windows 7, and my hope is to have my application run on all operating systems from XP to Win10.

    I am a .Net newbie - and running into obstacles like this is really frustrating (as much as I love the framework - it is really big and finding the classes I need is really difficult.  (Is there a directory of classes somewhere that i have not found??)

    Thanks

    Thursday, July 7, 2016 11:45 PM

Answers

  • Hi LA_Ken,

    >>PLEASE - Can anyone explain to me how I can use "Microsoft.WindowsMediaServices.Interop"??

     

    As far as I know, you should install Windows Media Services on the server machine. The SDK is bundled with the runtime components, so you'll need to copy Microsoft.WindowsMediaServices.Interop.dll and WMSServerTypeLib.dll from your Windows Server machine with the runtime installed.

     

    You maybe can find them at C:\Windows\System32\windows media\server. Then, register the type library and add a reference to the Interop assembly.

     

    The following links for your reference.

     

    install Windows Media Services in Windows Server 2008:

    https://support.microsoft.com/en-us/kb/934518

     

    Windows Media Services 2008 for Windows Server 2008:

    https://www.microsoft.com/en-us/download/details.aspx?id=12442

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, July 8, 2016 10:10 AM
    Moderator