I'm running into a similar issue. The weird thing is that this error only occurs when the page is loaded from the website. If I run the code locally on my machine, and connect via localhost, the page loads and no errors are thrown.
Once the page is uploaded to the web machine and I try to view it from my browser, I receive these errors on IE's console:
'this._div' is null or not an object
Error: Invalid argument.
Error: Invalid argument.
The map layers never load, but the basic layout does. I checked all of my <div> tags and there aren't any extras, nor are any missing.
What's the best method to try and figure this out? I've been using JSLint to find any errors, including missing semicolons, but using IE's debugger is a pain.
Thanks.