Click here to Skip to main content
15,895,836 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Min (2) must be less than or equal to max (-1) in a Range object. I am getting this error while iam executing in one project c

can any one help me reason for getting this error

thank u
Posted
Comments
Prerak Patel 8-Sep-11 5:02am    
Add more details.

hope one of your database operations ends up creating a range object in the database. that range object has the vaue 2 for its "min" property and "-1" for its max property.

what the execption is trying to tell you is that the minimum value must be smaller than the maximum value.
please check it out ur code.
 
Share this answer
 
Comments
Philippe Mori 8-Sep-11 20:44pm    
-1 look like a plausible initial value that has not been updated (if number are positive or 0). Check if you do not have a problem with border case like when there is only one value...

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900