Jan 18, 2013 at 12:45 AM
Edited Jan 18, 2013 at 12:46 AM
I got it!
At frist, I tried swapping http://adrotator.apphb.com/defaultAdSettingsSilverlightLoc.xml for http://peoplepoweredpeace.org/add-ins/nf/adSettings.xml in my app and I started seeing AdDuplex ads but that's it. Ads from any other provider does not
appear. This is in the emulator. As Darkside notes, pubcenter ads will not display in the emulator.
So I tried deploying to my Lumia 710 (still with http://adrotator.apphb.com/defaultAdSettingsSilverlightLoc.xml) and I got an error message. "A first chance exception of type ‘System.UnauthorizedAccessException’ occurred in Microsoft.Phone.dll"
Digging around the interwebs, I found this: http://www.mattdavid.net/category/wp7/, which recommends running CapabilityDetection (stuff found in the WMAppManifest.xml) of the app.
Looking around further on how to do this for a WP 7.1 app in VS Express 2012 for Windows Phone I found this: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394032(v=vs.105)
Basically, under the Project menu there is "Open Store Test Kit." Clicking on that opens a window with three tabs on the left. Select "Automated Tests" change solution configuration from Debug to Release. Click on Run Tests and
wholla! Capabilities used by application.
I had turned off a whole bunch of stuff in the WMAppManifest.xml since I didn't think I needed them. Why would I need PhoneDialer capability for showing ads? I dunno but the app and the ad control need it.
Anyway, my app shows ads with my ad config file.
Darkside, I did notice that debugging on the device would still crash if I used the "http://adrotator.apphb.com/defaultAdSettingsSilverlightLoc.xml " as the remote setting file.
This is what I get "An unhandled exception of type 'System.TypeInitializationException' occurred in MobFox.Ads.dll
Additional information: The type initializer for 'MobFox.Ads.AdProviders' threw an exception.
Since I am not using MobFox, my app isn't affected by it but I thought I would point it out.
Thanks for making this control available and your help in getting it working for my app!