I have problem with Web Application. I build a web Asp.net using ArcGIS API for JavaScript for mainpage. When i build this Web on my Server(WindowServer 2008 with ArcGIS 11.0) then it work well, but when i publish this web using IIS, error when open this web form Client via : http://203.160.215.85/..... . All Map and Layer is hidden. And page nothing on map. This my code:
//snapping is enabled for this sample - change the tooltip to reflect this i18n.toolbars.draw.start += "<br/>Press <b>CTRL</b> to enable snapping"; i18n.toolbars.draw.addPoint += "<br/>Press <b>CTRL</b> to enable snapping";
//This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic //for details on setting up a proxy page.
//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications esriConfig.defaults.geometryService = new GeometryService("http://203.160.215.85:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer"); //for details on setting up a proxy page. esriConfig.defaults.io.proxyUrl = "/proxy"; map = new Map("map", { basemap:"topo", center: [106, 21.5], zoom: 10 });
function initEditing(event) { var featureLayerInfos = arrayUtils.map(event.layers, function (layer) { return { "featureLayer": layer.layer }; });
var settings = { map: map, layerInfos: featureLayerInfos }; var params = { settings: settings }; var editorWidget = new Editor(params, 'EditPanel');
var options = { snapKey: keys.copyKey }; map.enableSnapping(options); } }); </script> [/HTML] I think my Map some wrong: public local, have yet shared on ArcGIS.com. Please help me resolve this problem ! Thanks.