Asked By
John_Stuart
0 points
N/A
Posted on - 08/10/2011
 Hello,
Can someone please help me with this error I got when the row_editing event of my gridview fired and validated my data entry fields such as textboxes, dropdownlists, etc? I am using required field validators to validate my controls and asp validation summary to provide a summarized error message of all required validators within my page.
I don’t know why this particular error occurred but I know it has something to do with validation since after I removed the validation in all controls, I got no errors. However, I really need validators on my page since it is a requirement in the project so I need to sort this error out. Please see the image below for the exact error message.
Server Error in '/' Application.
An entry with the same key already exists.
Answered By
zishami8
0 points
N/A
#113798
Validation Control Error (same key already exists)
In this type of Error report the processing configuration of the website become hanged. It does refer to the individual system process on which you hosted your Site. All websites are organized on individual base to use its own process to host its own code for application isolation and security.
That type of unique error happening generally tells Problem or crash comes to your site hosting and processing which cannot be recovered, and it has hanged, and IIS is unable to recover the request process to shut down the running site, and turn it to a new one.
In is the problem, the solution is usually as simple as reporting support team of the situation, and they will manually turn off your Application procedure and allocate IIS to turn a new process.
Validation Control Error (same key already exists)
Hello,
The problem you are encountering may be a result from trying to browse an asp.net application. However the possible scenarios of this error are
1. When you are creating a new web application using visual studio it tends to create a virtual directory and configures it as an application. But when you manually create a virtual directory and it has not been configured, then you encounter this error.
To resolve this, Right click on virtual directory and go to properties. Then click on Create. This will automatically create the ‘application’.
2. When there is sub-directories in the application, you can have web config file in the concerned directory. These files have settings that cannot be overridden and we encounter this problem.
I hope this information is helpful to your cause.