can't read <add> in config file

  • Thread starter Thread starter frederic
  • Start date Start date
F

frederic

When I try reading an <add> markup with
ConfigurationSettings.AppSettings, I get an error message
saying it can't fint "key" attribute.

I get this problem on one machine, not the other one.

Does anybody have any idea?

We have .net 1.1 SP1

thank you
 
Frederic:

The attributes in the web.config file are case sensitive. So it needs to be
"key" and not "Key" or "KEY". The same goes for the "value" attribute.

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


When I try reading an <add> markup with
ConfigurationSettings.AppSettings, I get an error message
saying it can't fint "key" attribute.

I get this problem on one machine, not the other one.

Does anybody have any idea?

We have .net 1.1 SP1

thank you
 
Back
Top