Failed to get appendChild property from undefined or null reference in WCF Rest

I developed a WCF recreation service that returns a DateTime. When I start the service in IE, the service breaks and gives an exception, stating that

Unhandled exception on line 82, column 1840 in script0x800a138f block - JavaScript runtime error: cannot get appendChild property from undefined or null reference

Where, as if I run the same service in other browsers such as Chrome or Firefox, the exception does not occur at all.

+4
source share
1 answer

Also, in order to reconcile the previous answer, IE10 is pretty strict, and I find that when debugging in F12 often the root of the “undefined or null reference” error report is essentially not a link, but something earlier in the DOM. Thus, when you open the F12 debugger and run it, be sure to look at "locals" when starting through the script to make sure that the first break contains an invalid link. You may have a problem with an unrelated function that IE10 (or 11) no longer supports. In this case, there is an updated syntax and term for functionality.

0
source

Source: https://habr.com/ru/post/1489206/


All Articles