Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET4.0
Server Error in '/Hr and Payroll' Application.
Selection out of range
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 

[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +173
Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +490
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1254
Telerik.Web.UI.RadComboBox.PerformSelect() +37
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
Telerik.Web.UI.RadComboBox.DataBind() +70
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +36
Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +46
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Posted 31-Dec-12 0:14am
Jay Ahuja1.2K
Edited 31-Dec-12 0:18am
v2
Comments
Jay Ahuja at 31-Dec-12 5:18am
   
please help me for this

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
More details about this exception are available at
http://msdn.microsoft.com/en-us/library/system.argumentoutofrangeexception(VS.100).aspx[^]
  Permalink  
Comments
Jay Ahuja at 31-Dec-12 8:38am
   
except this any solution??
Kiran Susarla at 31-Dec-12 23:37pm
   
As I mentioned this is an exception that the underlying code or one of your methods has thrown. You need to check what is the datatype of this variable and what values can it accept.
 
What other solution are you expecting from me?
Jay Ahuja at 2-Jan-13 0:45am
   
hello Sir.. thank you for reply but sir i am not able to get from where Selection out of range Parameter name: value error is coming.. as i am new in asp.net..
Kiran Susarla at 2-Jan-13 1:45am
   
What you can do is, after you open the solution and before debugging the code,
1. in Visual Studio go to Debug->Exceptions. This will open a window with all the exceptions
2. Uncheck all the exceptions and select System.ArgumentOutofRangeException under Common Language Runtime Exceptions-->System.

Now when you run the solution and where ever this exception occurs the code stops the execution and highlights the line and you can easily find where the exception is.

Hope I am clear.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100