Answer the question
In order to leave comments, you need to log in
Why does the error "Unhandled exception of type 'System.ArgumentOutOfRangeException' in mscorlib.dll" occur?
Here is what is written in the error:
Необработанное исключение типа "System.ArgumentOutOfRangeException" в mscorlib.dll
Дополнительные сведения: Индекс за пределами диапазона. Индекс должен быть положительным числом, а его размер не должен превышать размер коллекции.
var max = Convert.ToInt32(max_user, 16);
Answer the question
In order to leave comments, you need to log in
ArgumentOutOfRangeException - value is String.Empty
Most likely max_user is empty
most likely because arrays are usually counted from the zero position, so the border will not be 16 but 15. i.e. the fact is the value minus one
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question