Select to view content in your preferred language

Connection with local ARCGIS Server

4511
20
Jump to solution
07-04-2012 10:08 AM
NadeemQazi
Regular Contributor
Hi
I am new to arcgis server and viewer . I have installed arcgis server on my labtop. the name of the server is NA-LAP-3z8 and instance of the gis server is named as ARcGIS_Server so that when i start my arcgis server the  following address is appeared in browser.
http://localhost/ArcGIS_server/Manager/login.aspx?ReturnUrl=%2fArcGIS_server%2fManager%2fdefault.asp...
Now I want to connect the ArcGIS server through flexview 3.0. I want to know what name should i give to make a connection actually i have tried  "NA-LAP-3z8" and the arcgis_Server but it did not return me any thing when i click the browse. any help is highly appreciate.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
NadeemQazi
Regular Contributor
Good Morning Robert
While with your help I am  able to run the  arcgis viewer now thank you for your help. But as it always happens one problem finishes and second arises:) I appreciate your time for looking it.

I am running a Pyton script to publish a msd file. this is my coding

import arcpy
try:
msd= r"C:\GeoSpatialTraining\ArcGIS 10\GIS Programming 101\Exercises\crime.msd"
arcpy.mapping.PublishMSDToServer (msd, "http://<localhost>/arcgis/services", "<localhost>", "MyMapService", "", ["WMS", "KML"])
except IOError as e:
print "I/O error({0}): {1} {2}".format(e.errno, e.strerror,e.message)

However it fails to publish the service. Any idea what could possible be wrong. I have shared the folder and also added arcgis user into it. When i tried to publish the service using arcgis server manager it worked and service is published but with the above python script it did not work.
Regards
Nadeem

View solution in original post

0 Kudos
20 Replies
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   The REST Services directory url would be: http://NA-LAP-3z8/ArcGIS_Server/rest/services and from there you can get the url to your specific MapServices.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
NadeemQazi
Regular Contributor
Thank you Robert,
However i entered the same url as you mentioned but still there is no result from ARCGIS Viewer. Let me re- phrase my problem

I have published a map service(airport.mxd) to my ARCGIS Server and i can see it is running on my ARCGIS Server manager
I run the ARCGICVIEWER for FLEX
it asked me  for basemaps
I clicked ARCGIS Server and entered your mentioned URL http://NA-LAP-3z8/ArcGIS_Server/rest/services  but it returned no result.
I also tried this one :
http://NA-LAP-3z8/ArcGIS_Server/rest/services/airport/MapServer
but no success.
any help.....
thank you
nadeem
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   Try entering http://na-lap-3z8/ArcGIS_Server/rest/services in to the addressbar of your browser and see if it pulls up a web page which is the REST Services Directory if not than you have an issue with your ArcGIS Server installation and should contact Tech Support.
0 Kudos
NadeemQazi
Regular Contributor
Thanks Robert I did as u asked me and this URL does not work in browser with following message. Please Note I have installed server on windows 7.0 . is it some problem with network or i need to install DNS. I am on company network but ARCGIS Server is installed on my machine.


The following error was encountered while trying to retrieve the URL: http://na-lap-3z8/ArcGIS_Server/rest/services

    Unable to determine IP address from host name "na-lap-3z8"

    The DNS server returned:

    Name Error: The domain name does not exist.

Regards
Nadeem
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

  Try it with localhost then instead of na-lap-3z8. Are you sure that the name of the machine with ArcGIS Server installed is "na-lap-3z8"?

http://localhost/ArcGIS_Server/rest/services
0 Kudos
AnthonyGiles
Honored Contributor
Nadeem,

You are not by any chance using server 10.1 as the URL for your rest endpoints changed unless you are using the ArcGIS Web Adapter see:

http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000002p0000000

Regards

Anthony
0 Kudos
NadeemQazi
Regular Contributor
Robert , I am sorry If I am taking you much time, actually I did one more thing and tried this URL(http://localhost/ArcGIS_server/rest/services/airport/MapServer) in browser (i.e. rather than giving the server name i have used local host).it worked and displayed the layers inside my published service.

however when i did the same with the arcviewer ,it worked and showed me the published service on the server.However now there is another problem and it when i selected the map saved it and tried to preview it i got errors 🙂

Map Manager
airport layer failed to load :Fault code:Channel.Security.Error
Fault info:Secruity error acessing url
Fault details:Destination:Default HTTP


I think its now some user right problems, Can u please give some guide line. Also what do u think what could be done to use the server name rather than using local host in the URL. I also tried to modified the host file but it did not work

Thank you very much for your time
Regards
Nadeem
0 Kudos
NadeemQazi
Regular Contributor
Hi Robert its me once again

I checked the name of my laptop the machine name is  NA-LAP-3Z8 and it is member of domain NUIM. The same name //NA-LAP-3z8 is shown by ARCGIS Server Manager when i used it for publishing the service. But outside this it does not work.
Regards
Nadeem
0 Kudos
AnthonyGiles
Honored Contributor
Nadeem,

Ensure you have a crossdomain file on your server, see:

http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/index.html#references/using_crossdoma...

Regards

Anthony
0 Kudos