defaultAdSettings.xml

Feb 7, 2013 at 7:14 PM
Where do I put this xml file? I have it in my main project but when I debug through the source code if falls into the "Failed settings retrived from local trying defaults."

I verified that my .xml file is set to build action Content and Copy To Output Directory if newer.

What am I not doing right here???

Thanks,

PkL728
Coordinator
Feb 7, 2013 at 11:58 PM
The file can be anywhere in your project, you just need to specify where it is in the XAML control configuration using he DefaultSettingsFileUri

E.G.
in Windows Phone
DefaultSettingsFileUri="/<AppAssemblyName>;component/defaultAdSettings.xml"
(Root of the project with the App Assembly name)

In Windows 8
DefaultSettingsFileUri="/defaultAdSettings.xml"
(Project root)

Hope this helps.