You have reached the blog of Keith Elder. Thank you for visiting! Feel free to click the twitter icon to the right and follow me on twitter.

Seriaizing Objects in web.config

Posted by Keith Elder | Posted in Asp.Net, Programming | Posted on 31-08-2006

Jeff Atwood posted an article about serializing objects in the web.config file a few weeks ago on his blog.  I recently gave a presentation on creating custom configSections in web.config by creating custom SectionHandlers.  One day I’ll write it up and post it to here how its done.  Until I get time to write that up, you may want to check out what Jeff has going on with creating an object, then serialzing it, and then storing it in the web.config file.  Of course you could use app.config as well.

The most interesting nugget that came out of the comments was a reference to the ConfigurationPropertyAttribute that Jarrod Dixon pointed out.   I hadn’t heard about this but it is a nice thing to know because it declartively instructs the .Net framework to instanatiate a configuration property.

Write a comment