Unable to get property 'appendChild' of undefined or null reference in WCF Rest

4

I have Developed a WCF Rest Service which returns dateTime. When I Run the Service in IE, Service is breaking and giving exception stating that

Unhandled exception at line 82, column 1840 in script block 0x800a138f - JavaScript run time error: Unable to get property 'appendChild' of undefined or null reference

Where as If I run the same service in Other Browsers like Chrome or Firefox the exception is not occurring at all.

c#
javascript
wcf-rest
asked on Stack Overflow Jul 2, 2013 by Karthik Dheeraj • edited Jul 2, 2013 by svick

1 Answer

0

Also, to dovetail on the previous response, IE10 is quite strict, and I find that when debugging in F12, often the root of an 'undefined or null reference' error report is, in fact, not the reference itself, but something earlier in the DOM. So, when you open the F12 debugger and run it, be sure to watch 'locals' as you run through the script to be sure where the first breakdown is of a reference not being passed. You could have an issue with an unrelated feature that IE10 (or 11) no longer supports. In which case, there is an updated syntax and term for the functionality.

answered on Stack Overflow Oct 28, 2013 by The Sethness

User contributions licensed under CC BY-SA 3.0