The Kinetic Jump site navigation header requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Welcome Guest Search | Active Topics | Log In | Register

Persisting UpdateController Settings Options
AJR
#1 Posted : Monday, September 17, 2007 4:25:23 AM
Rank: Newbie
Groups: Member

Joined: 9/17/2007
Posts: 1
Hi

I'm new to AppLife Update, so there might be a simple answer to this. I'm trying to figure out the easiest way to persist the UpdateController settings (e.g. Proxy Username, Proxy Domains etc etc) in my application. I've created an item in My.Settings called UpdateController, but this doesn't seem to serialize correctly. I've also tried creating a derived version of the UpdateController which implements ISerializable, but this throws an internal error during serialization "{"Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface."}". Any other suggestions?

Thanks

Allan
brianh
#2 Posted : Monday, September 17, 2007 11:46:30 AM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 402
Location: Minnesota
Hello Allan,

The UpdateController is not serializable so you won't be able to place the entire object in MySettings.

You can still use MySettings to persist the values that you are making configurable though. With the exception of the ProxyAddress property, the proxy related properties are all strings or bools and are pretty straightforward to store in MySettings individually. The ProxyAddress property of the UpdateController is a Uri, so you will have to make a decision to store a string in MySettings or a System.Uri object. Either way you will probably need a little code to to set the properties of the controller from the MySettings values.

If you need further assistance, just let me know.
Brian Haas
Kinetic Jump Software
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.