I am explaining here the issue in more detail
I have an Asp.Net MVC Application. There I am trying to integrate the ArcGIS JavaScript Basic Viewer.
I already configured the ArcGIS Javascript API 2.6 in my Asp.Net application as below here [ATTACH]10821[/ATTACH]
I have Default.ashx inside jsapicompact folder as mentioned in install.htm of ArcGIS Javascript Api downloaded content.
I am using this script reference.
<script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis_js_api/library/jsapicompact/default.ashx�?� >
Instead of
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6compact">
Here is my dojoConfig
var djConfig = {
parseOnLoad: true,
locale:"en-us",
baseUrl: './',
modulePaths: {
"esriTemplate": "../../../Modules/ArcGISMaps/Scripts"
}
};
The problem is I am not able to make Basic Viewer to work with local ArcGIS Javascript Api. I am getting some error in loading dojo scripts and ArcGIS javascript Api Scripts.
Please help me how to configure the basic viewer with local ArcGIS Javascript Api (http://localhost/myapplication/scripts/arcgis_js_api/library/jsapicompact/default.ashx)
Instead of
Online api (http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6compact)
it should just be
<script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis_js_api/library/2.6/jsapi/?v=2.6compact�?� >
unless you changed the folder structure