Answered by:
[UWP][XAML] Blank app with only a MediaPlayerElement fails XAML parsing

Question
-
Hi all,
After learning that MediaElement is deprecated in favor of MediaPlayerElement, I started transitioning to the new control in an app I'm working on. However, while working on my Azure VM with build 1607 (AU), I get XAML parsing errors. To try and verify the issue, I made a brand new, empty UWP app with only a MediaPlayerElement, and the XAML still won't parse. I get a COM exception about a class not being registered (REGDB_E_CLASSNOTREG) in InitializeComponent(). Any ideas for how to fix this?
KeepMyIdentities, Your Key to Password Security. Available now on the Windows Store: http://apps.microsoft.com/webpdp/en-US/app/keepmyidentities/61a9f340-97ac-4666-beab-39f9246cb6fa
Friday, October 14, 2016 2:21 PM
Answers
-
This is helpful, but it wasn't exactly the problem I was having. It seems to have resolved itself after a restart of the VM, however.
KeepMyIdentities, Your Key to Password Security. Available now on the Windows Store: http://apps.microsoft.com/webpdp/en-US/app/keepmyidentities/61a9f340-97ac-4666-beab-39f9246cb6fa
- Proposed as answer by Xavier Xie-MSFT Tuesday, October 18, 2016 8:56 AM
- Marked as answer by Xavier Xie-MSFT Tuesday, October 25, 2016 9:17 AM
Monday, October 17, 2016 2:52 PM
All replies
-
Hi InLocoAbsentia,
It’s a known issue. You could use Franklin’s workaround “setting the Source property from code behind” on this thread: https://social.msdn.microsoft.com/Forums/Windowsserver/en-US/520cc74a-159a-4ea5-b7ad-2b5d08288beb/uwpmediaplayerelement-doesnt-work?forum=wpdevelop
Best Regards,
Xavier Eoro
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.Monday, October 17, 2016 2:37 AM -
This is helpful, but it wasn't exactly the problem I was having. It seems to have resolved itself after a restart of the VM, however.
KeepMyIdentities, Your Key to Password Security. Available now on the Windows Store: http://apps.microsoft.com/webpdp/en-US/app/keepmyidentities/61a9f340-97ac-4666-beab-39f9246cb6fa
- Proposed as answer by Xavier Xie-MSFT Tuesday, October 18, 2016 8:56 AM
- Marked as answer by Xavier Xie-MSFT Tuesday, October 25, 2016 9:17 AM
Monday, October 17, 2016 2:52 PM -
Hi InLocoAbsentia,
I'm glad that you have solve your problem. I think you could close this case. You could mark all helpful reply as answer. It would be helpful to other developers who're looking for the answers.
Best Regards,
Xavier Eoro
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.Tuesday, October 18, 2016 8:56 AM