473,503 Members | 6,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Required attribute 'key' not found

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>
Nov 19 '05 #1
3 3219
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.
"Laura K" <kl*******@ATcharter.net> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
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>

Nov 19 '05 #2
Try using all lowercase letters (key="" instead of Key=""). Some parts
of the config file are case sensitive.
Laura K wrote:
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>

Nov 19 '05 #3
Thanks that worked ...onto new problem
"Laura K" <kl*******@ATcharter.net> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
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>

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1925
by: Peter Otten | last post by:
There is currently a discussion on python-dev about an extract() function which offers fast access to list items and object attributes. It could serve, e. g., as the key argument of the future...
3
5315
by: CindyRob | last post by:
I am using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, with hotfix 82202, Visual studio .NET 2003 with hotfix 823639. I have generated a proxy class using wsdl.exe from a schema that has an...
3
6839
by: ThunderMusic | last post by:
Hi, I have an XML like document I want to parse... The document looks like this : <Form id="frmMain" width="345" height="75" HeaderHeight="9" image="frmMain.jpg" ColorKey="000000"> <Control...
11
3977
by: Naeem | last post by:
I have a Javascript function, which changes a text field of a form into a select field. Following is the function function changeStateField() { var myForm =...
2
1331
by: Bart | last post by:
Hi, i read several articles about serialization. I know now that it is a process of converting an object into a stream of data so that it can be is easily transmittable over the network or can...
1
1975
by: chris.bahns | last post by:
Hello All, I am fairly new to creating custom attributes, and want to get a better feel for how they should be named. We have a class hierarchy, with a base class called "SequenceCommand". This...
6
3535
by: Adam Donahue | last post by:
As an exercise I'm attempting to write a metaclass that causes an exception to be thrown whenever a user tries to access 'attributes' (in the traditional sense) via a direct reference. Consider:...
4
1567
by: =?Utf-8?B?a2g=?= | last post by:
Hi. In a custom attribute, is there any way for me to discover the type/member to which the attribute is applied during attribute construction? For example: public enum MyEnum { MyField,...
3
2595
by: Rob Blackmore | last post by:
I am trying to create an attribute of type Icon and have the following code: <AttributeUsage(AttributeTargets.Class)_ Public Class PIMSGridViewIconAttribute Inherits System.Attribute '///...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7291
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.