Microsoft.Media.Advertising.FreeWheelFactory.loadSource resulting in "Class not registered" error

Topics: Windows 8 JavaScript
Dec 17, 2014 at 1:37 AM
I have a streaming video application that has been able to play video perfectly before, but I am now getting a runtime error when trying to play a video ad. The error is occurring in PlayerFramework.Advertising.js, on line 1205:

var promise = Microsoft.Media.Advertising.FreeWheelFactory.loadSource(new Windows.Foundation.Uri(source))

When I place Microsoft.Media.Advertising.FreeWheelFactory.loadSource(new Windows.Foundation.Uri(source)) into a watch, it returns Class not registered

I'm at a loss for how to resolve this. Can anyone point me in the right direction?
Mar 14, 2015 at 12:18 PM
Hi,

this is a bug with the VS update 4. You have to replace Microsoft.Build.AppxPackage.dll by the Microsoft.Build.AppxPackage.dll shipped with VS update 3