Error configuring local JS API/library from a web app

1878
0
09-23-2015 04:28 PM
VenuKanaparthy
New Contributor

Hi,

I want to configure my web application to use js library on local server.

Did the following,

  1. Downloaded the js library and hosted on local server.
  2. Copy \arcgis_js_api\library and all its contents from the DVD to your Web server. In this example the files are copied to:
    C:\Inetpub\wwwroot\arcgis_js_api\library
  3. Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.14\3.14\init.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "<myserver>/arcgis_js_api/library/3.14/3.14/"
  4. Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.14\3.14\dojo\dojo.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "<myserver>/arcgis_js_api/library/3.14/3.14/"

The index.html has following references,

<link rel="stylesheet" href="http://myserver/arcgis_js_api/library/3.14/3.14/esri/css/esri.css"/>

<script type="text/javascript" src="http://myserver/arcgis_js_api/library/3.14/3.14/init.js" />

I get following error:

Appreciate any feedback.

Thanks

0 Kudos
0 Replies