locked
WinRTError: Class not registered when instantiating MediaProtectionManager

    Question

  • Hi

    I'm trying to get the sample app 'PlayReady JS RTM Windows Store app' running on my Windows 8.0 machine.

    I have only re-added the Microsoft PlayReady Client SDK project reference since it was broken due to new version.

    When the sample app attempts to instantiate the Windows.Media.Protection.MediaProtectionManager (default.js:~73) it fails with the following stacktrace:

    WinRTError: Class not registered
    
       at startPlayBack (ms-appx://d0b7e552-20c1-4b03-8de2-187d4d7595a8/js/default.js:74:9)
       at btnPlay_click (ms-appx://d0b7e552-20c1-4b03-8de2-187d4d7595a8/js/default.js:54:28)
       at onclick (ms-appx://d0b7e552-20c1-4b03-8de2-187d4d7595a8/default.html:26:1)
    What could be the cause if this? Thanks
    Friday, April 25, 2014 2:30 PM

Answers

  • Hello,

    It sounds like you still have a mismatch between the version of the PlayReady SDK installed on your machine and the referenced assembly in your app. It also may be possible that the PlayReady client components (not SDK) have not been updated on your 8.0 machine to match the version that the updated PlayReady Client SDK is expecting. I would recommend that you update your machine to Windows 8.1 Update and then relink your assembly.

    I hope this helps,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Saturday, April 26, 2014 12:42 AM
    Moderator