MobFox UnauthorizedAccessException every time is used

Feb 21, 2014 at 9:31 PM
Every time AdRotator tries to use the MobFox

I get:
System.UnauthorizedAccessException was unhandled
   at Microsoft.Phone.Info.ExtendedPropertiesHelper.GetValue(String propertyName, GetValueImplDelegate getValueImpl)
   at Microsoft.Phone.Info.DeviceExtendedProperties.GetValue(String propertyName)
   at MobFox.Ads.AdProviders.0..cctor()
   at MobFox.Ads.AdControl.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)

I have latest library and even added a lot of try / catch but it happens anyway
Feb 21, 2014 at 9:51 PM
We don't get this in the test examples when using MobFox

However one of the other users of the control did note that if the ID wasn't set in the correct place (in the config file) it would crash when trying to access the ID. Their solution involved changing the source to put the try /catch around the Linq query for the ID.

We'll ensure this fix is placed into V2 or in to V1 if we publish another update.
Feb 22, 2014 at 10:28 AM
I'm the same one :)

Can you give me access to the project so I add my fixes to 1.1.0 too?
Feb 23, 2014 at 8:38 AM
You are free to download the source and make changes to your local version.

If you want to contribute, I suggest you grab the source to V2 from GitHub (, make your own fork and sumbit a PR.