Skip to main content

Microsoft Silverlight

Answered Question AppSettings for Silverlight App.RSS Feed

(0)

kutabale
kutabale

Member

Member

0 points

20 Posts

AppSettings for Silverlight App.

I have Silverlight App. That runs in two mode based on configuration. Is there a way i can store the keys in the ServiceReferences.ClientConfig.

 Or is there another way to better store this. keys. 

<appSettings>

<add key="key" value="the value" />

</appSettings>

fullsailrick
fullsail...

Contributor

Contributor

3699 points

829 Posts

Re: AppSettings for Silverlight App.

Hi! In Silverlight you would want to pass those in as InitParams.



(Ignore the Param I have highlighted. It's an artifact from helping someone else.) You want to make an InitParam.

kutabale
kutabale

Member

Member

0 points

20 Posts

Re: AppSettings for Silverlight App.

I know about that. But i thougth it would be some more secure way to do this. May be inside XAP file.

fullsailrick
fullsail...

Contributor

Contributor

3699 points

829 Posts

Re: AppSettings for Silverlight App.

If it helps you sleep better at night to do it that way, then sure I guess you could. But the XAP is just a Zip file, and can easily be reverse-engineered, so I wouldn't go to extraordinary lengths to hide something. :]

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: AppSettings for Silverlight App.

 Hello Kutabale,

One of our Insiders wrote one useful tip for that.

Please check-out this link. 

http://jonas.follesoe.no/ConfiguringSilverlight2ApplicationsUsingTheWCFConfigurationFile.aspx

 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities