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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top