64-bit API error?

513
2
01-14-2011 04:09 AM
NickGramsky
New Contributor
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>
0 Kudos
2 Replies
AxelSchaefer
New Contributor II
No problem here with Win7 64-bit. Also our 2008 64-bit servers are running fine. Maybe another problem. Firefox version (beta?), Firewall, Proxy, Webwasher,...


You also have a small typo in
var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapUR L);
Should be basemapURL.
0 Kudos
NickGramsky
New Contributor
Turns out it was my service.  I was unable to access my services and that was giving me my error.  The UR L typo wasn't really there.  The space came in when I copy/pasted.  I could load the other pages you mentioned fine, however that was a good test to go through.  By validating these steps I was assured there was nothing wrong with my ability to access/run the API. 
Thanks!
0 Kudos