Required attribute 'key' not found

L

Laura K

Getting the following Error.

Required attribute 'key' not found

Line four is the offending code. It is probably something simple. Can
anyone help?

Thanks Laura K


<configuration>
Line 3: <appSettings>
Line 4: <add Key="ConnectionString" Value="Data
Source=location-of-server;Initial Catalog=database-name;User
ID=USERId;Password=password" />
Line 5: </appSettings>
Line 6: <system.web>
 
D

David Lloyd

Laura:

The attributes names are case sensitive. Try "key" rather than "Key" and
"value" rather than "Value."

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

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

Joshua Flanagan

Try using all lowercase letters (key="" instead of Key=""). Some parts
of the config file are case sensitive.
 

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

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top