Javascript API - Stored in local server - Page NOT Found

828
1
11-28-2016 07:59 AM
MathanManohar
New Contributor III

Hi,

I am trying to create an web application using ArcGIS Javascript API. The app will be hosted in intranet environment.

So I want to store the JS files in the local server. I downloaded the arcgis JS V41 API from the site and hosted in the local server. But when I add the script in HTML file, 404 Error appears.


<script
src="http://SERVERNAME/devPublishApp/4.1/ "></script>

Query:

1. I created an virtual directory in the server and mapped it int he IIS. Do .js files need any more installation? [Since the script src is NOT pointing to any file precisely ex:esrifeat.js]

Thanks In Advnce.

0 Kudos
1 Reply
omega_cancer
Occasional Contributor II

404 for init.js?

If yes

1. Try adding /init.js to path

2. Paste HTML page in same dir and try to access it to see if it works

Did you followed the guide that is shipped with API to make it work on local server?

like change names and ports of server in js files?

0 Kudos