Error 2147418094

Error 2147418094

Error 2147418094 is IE's way of reporting a NullPointerException. Unfortunately IE doesn't give any line numbers or stack traces, so getting this error could be due to any of a wide variety of bugs. We frequently have folks report this error, but it's so generic that without a set of reproducible steps we don't have anything to go on. In order to fix bugs associated with error 2147418094 on IE we really need a reproducible case to get to the error.

One thing that may help you gather the required data is to have a debugger on the machine so you can catch the error in action. Good thing is that once we get a line number or a way to reproduce these are trivial things to fix (most of the time). Just need to add a null check or put a safety check. So if your inclined to get to the bottom of such an error I'd recommend you install MSE and try to catch the error in action. More details on how to get and use MSE are below:

Microsoft Script Editor (MSE)


Microsoft Script Editor is probably one of the lesser known tools that can really make a difference when it comes to developing web applications. MSE is a debugger, much like Visual Studio and it comes bundled with Microsoft Office. It should not be mistaken for Microsoft Script Debugger which is a piece of crap compared to MSE. MSE got all the nice features Visual Studio has without the bloat.

MSE is installed at %ProgramFiles%/Microsoft Office/OFFICE11/MSE7.exe. Older versions might be installed at a slightly different location and if you cannot find it just search for mse. If you still cannot find it and you have an old Microsoft Office CD lying around you can install it from there. If you select custom install or add remove components it should be located under Microsoft Office / Office Tools / HTML Tools /Web Scripting / Web Debugging.

By default script debugging is disabled in IE but you can enable it by unchecking Tools / Internet Options... / Advanced / Disable script debugging (Internet Explorer).

So how do you use this mysterious tool?

MSE allows you to debug existing IE processes but more importantly it is triggered by the debugger statement (which by the way also works if you have Venkman opened for Mozilla). If you already have IE up and running or you can’t edit the source files of the web application you can get into the debug mode by opening the Debug / Processes dialog and from there select the process to attach to.

Once in debugging mode you can step through the program to see what is going on. Out of the box not much is shown but things like local variables, watch, running documents, call stack and more is available to you under Debug / Window.

See Also

Jump to: navigation, search