I have been assigned the task of solving a Windows Phone C# problem, but unfortunately I have never done any web development or phone development, so I'm in a bit of trouble. After several hours of beating my head in, I gave up and came here to ask... hope this question isn't too vague, as I'm afraid it could be...
This mobile app is doing a bit of screen scraping, and has this line in it:
wb.InvokeScript ("eval", "document.getElementById('ctl00_ContentPlaceHolder1_textboxFirstName').value = '" + firstName + "';");
It works perfectly the first time through, but the second time through, it crashes. The error message is this:
An exception of type 'System.SystemException' occurred in Microsoft.Phone.Interop.ni.dll but was not handled in user code Additional information: An unknown error has occurred. Error: 80020101.
I am having trouble following this code (I know I'm in over my head). Does anyone know why this line would crash the second time through? The syntax seems to be correct. If I comment out this line, the program crashes on the very next InvokeScript line. Perhaps you just can't Invoke the same line twice?
Any ideas would be much appreciated.
Thank you.