18 August 2016

How to replace AdMediator control with AdControl in UWP

If you developed application in Windows App Studio for Universal Windows 10 platform and generate source code for further developing in Visual Studio, than :

* Install Microsoft Store Services SDK

Open MS Visual Studio and working project, than :

* remove refence on Microsoft Advertising Universal SDK
* open Layouts\Controls\AdvertisingControl.xaml
* replace

xmlns:Universal="using:Microsoft.AdMediator.Universal"
with
xmlns:Universal="using:Microsoft.Advertising.WinRT.UI"

* replace
<Universal:AdMediatorControl
with
<Universal:AdControl

Select AdControl in Design window and enter these Miscellaneous properties :
* AdUnitId
* ApplicationId
which you prepared in Windows Dev Center - Monetization section

Rebuild project and thats it.




14 August 2016

Windows 10 Apps crash fix (Weather, etc)

If you expirience Windows 10 Apps crash or close, it is likely that the problem is being caused by inadequate access permission to the C:\Program Files\WindowsApps

Go to the directory and right click it and click in Properties, then check the security tab and give access permission to your user (set yourself as directory owner). 

This should solve the problem of any application within the WindowsApp directory that is crashing.