Error when adding reference of WinRT component RRS feed

  • Question

  • From "Media plugins sample" sample file, I put the dll and .winmd file in the same folder of project and try to plugin. When I adding reference, it has error. I am wondering that does the project of dll should be the same solution with the project try the reference it?? Or I miss something when adding reference?? Or I need to create my own extension SDK??
    Thursday, October 20, 2011 3:04 AM

All replies

  • I guess you forget to register you components in manifest. (Needs to open by text editor directly.)

    Here are the steps:

     Step 1:  Register the dll in the extensions section of the package.appxmanifest file
        <Extension Category="windows.activatableClass.inProcessServer">
            <ActivatableClass ActivatableClassId="Microsoft.IIS.SSMFByteStreamHandler" ThreadingModel="both" />

    Step 2:  In your app, register the BSH for a certain extension/mime-type
    var plugins = new Windows.Media.MediaExtensionManager();
    try {
        // Register custom ByteStreamHandler
        plugins.registerByteStreamHandler("Microsoft.IIS.SSMFByteStreamHandler", ".ism", "text/xml");
    catch (e) {

    You can check the Media Plugins Sample for more detail.



    Thursday, October 20, 2011 9:50 AM