ngramsky

64-bit API error?

Discussion created by ngramsky on Jan 14, 2011
Latest reply on Jan 21, 2011 by ngramsky
Hi,

I have ArcGIS Server 10 installed on two different servers.  One is XP Pro and the other is 2008 R2 64-bit.  I'm having errors loading the exact same referenced API on the 2008 R2 server.  When I try to load a simple web page I get the following error in my mozilla error console:

uncaught exception: [Exceptio... "Component return failure code: 0x80004003 (NS_ERROR_INVAID_POINTER)[nsIDOMHTMLDivElement.removeChild]" nsreult: "0x80004003
(NS_ERROR_INVALID_POINTER)" location:"JS frame::http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1::Anonymous::line48"  data:no]

The following is my html file:

<html>
<head>
  <title>Create a Map</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css">
  <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"></script>

  <script type="text/javascript">
    dojo.require("esri.map");
    var map;
    function init() {
      map = new esri.Map("mapDiv");
var basemapURL= "http://esri-test/ArcGIS/rest/services/first_test/MapServer"
     
      var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapURL);
      map.addLayer(basemap);
    }

    dojo.addOnLoad(init);
  </script>
</head>

<body class="claro">
  <div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"></div>
</body>
</html>

Outcomes