Index and length must refer to a location within the string. Parameter name: length

Posted by Parthibansk under C# on 10/17/2018 | Points: 10 | Views : 265 | Status : [Member] | Replies : 0
i get a error.. let me knw how to solve it

Index and length must refer to a location within the string.
Parameter name: length
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: Index and length must refer to a location within the string.
Parameter name: length

Source Error:


Line 131:
Line 132:
Line 133: if (dealwith.Substring(0,8 ).ToString() == "|")
Line 134: dealwith = dealwith.Substring(1, dealwith.Length - 1);




Responses

(No response found.)

Login to post response