Required attribute 'key' not found

  • Thread starter Thread starter Laura K
  • Start date Start date
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>
 
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.
 
Try using all lowercase letters (key="" instead of Key=""). Some parts
of the config file are case sensitive.
 
Back
Top