Max key/value length in 'application configuration' files

Xaqron picture Xaqron · Jun 17, 2011 · Viewed 7.5k times · Source

What's the maximum allowed length for MyKey and MyValue in a configuration file?

<configuration>
  <appSettings>
    <add key="MyKey" value="MyValue" />
  </appSettings>
</configuration>

Answer

Pranay Rana picture Pranay Rana · Jun 17, 2011

As per knowledge there is no limitation to key value pair in webconfig file .....

if you are planning to add object to config file check this post will help you to achieve your task

How to store custom objects in web.config ?