Hey all,
This code:
Produces this error:
I'm trying to retrieve the page name and line number of the given error (everything after the last slash in the StackTrace). I'm pretty sure my LastIndexOf and Length values are within range.
Any thoughts?
This code:
Code:
AMessage = e.StackTrace.Substring(e.StackTrace.LastIndexOf("\\"), e.StackTrace.Length);
Code:
Index and length must refer to a location within the string. Parameter name: length
Any thoughts?
Comment