This project is read-only.


LocalSettingsLocation fails to load component-based files


Setting LocalSettingsLocation to a settings file located in a different project doesn't work:
AdRotatorControl.LocalSettingsLocation = "/DiffProj;component/defaultAdSettings.xml";
Project is a Windows Phone 8 application, and the AdRotator control is located in a view in a different project.
Closed Jun 14, 2014 at 11:19 AM by Darkside
Infeasible in current project.


Darkside wrote Jun 28, 2013 at 12:09 AM

That's not a scenario we`ve tested, is there some reason the default config needs to be in another project?

saguiitay wrote Jun 28, 2013 at 12:41 AM

My view is shared between several apps, and is therefore in a common project. The idea was that each app will provides its own default settings file...

Darkside wrote Jun 28, 2013 at 11:58 AM

Our recommended approach in that instance is to use a common default file and share it across your projects (as a linked file) and have your different app settings files hosted on your website using the RemoteSettingsFileLocaton.

That way you can always control your settings remotely without rebuilding the app.

Main reason to have specific app project settings files is if you only intend to do manual ads (using house Ads), however that feature is not yet in V2.

What do you think?

saguiitay wrote Jun 28, 2013 at 12:35 PM

I wasn't planning on using a hosted online file.
I understand that its probably better to do it that way, but I'm lazy ;)
I'm currently just manually managing a single file, which contains the settings for all the apps....

Darkside wrote Jun 28, 2013 at 2:00 PM

Ok, well we'll ad it to the backlog for V2 and see what we can do.

BTW, you know there are several free online hosts for hosting your files and they only take a few mins to setup, AppHarbour is the easiest.

Darkside wrote Jun 14, 2014 at 11:18 AM

Right, we've looked in to it and using a config file in a separate project just isn't going to be viable due to the work required to implement it.

Best to either:
  • Link to the file - so add the central AdConfig file instead of just adding / copying it.
  • Use online hosted config and use the same config file for all clients