Select to view content in your preferred language

Connection with local ARCGIS Server

5054
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
20 Replies
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

  Is your laptop the machine that ArcGIS Server is installed on? It is strange that your machine name is NA-LAP-3Z8 yet it can not resolve this to your IP Address. You need to talk with your IT staff about this issue. When you are speaking of ArcViewer are you talking about the ArcGIS Viewer for Flex website that is built using App Builder or are you using the compiled ArcGIS Viewer for Flex and deploying it to your webserver yourself or are you using Flash Builder and the uncompiled Viewer?
0 Kudos
NadeemQazi
Regular Contributor
Hi Robert

I am using ArcGiS VIEWER for flex 3.0 which is used to to create new web mapping applications, i have used it for creating a web application allowing access to my published map service. however as i wrote u that after changing the url it does show me the published service however when i preview it it gave me this error :

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

I think its now some user right problems, Can u please give some guide line
Regards
Nadeem
0 Kudos
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
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   Try not putting the right and left carret around the local host:

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)
0 Kudos
TrevorWeiland
Regular Contributor
I cannot tell by reading through the thread-have you fixed the abilitiy to see the rest services yet?

If not:
Can you see the default welcome page for IIS (http://localhost)?
Can you see the AGS Manager page (http://localhost/ArcGIS/manager)?
Can you see the rest admin login page (http://localhost/ArcGIS/rest/admin)?

A problem with any one of these 3 pages indicates either a problem with IIS or with the AGS install.  Until you can see the rest services page, you won't be able uses your services in any viewer.
0 Kudos
NadeemQazi
Regular Contributor
thanks Trevor Weiland
Yeah I can see them with name of my arcgis server like

for ISS I can see IIS when i type localhost in the browser
for ARCGIS Manager  http://localhost/ArcGIS_server/manager

for rest admin login page   http://localhost/ArcGIS_server/rest/admin

i mean with the name of localhost it works but not with the name of  server name  of my machine.
0 Kudos
NadeemQazi
Regular Contributor
Thanks Robert and Trevor Weiland for your help. The problem of local host is solved as it was the firewall who was making problem and other issue was the IPversion 6 was enabled i changed it IP version 4 now the ARCGIS Server can also be access using the IP Address. However I am putting up one more problem now 🙂

I have seen that all the services that i published on the ARCGIS Server is disappeared once the server is re- started and i need to create the services each time the server starts.  i have enabled the check box  that says re start the service when the server starts up. Any suggestion

Kind Regards
Nadeem
0 Kudos
TrevorWeiland
Regular Contributor
Make sure you have a bunch of cfg files in a folder similar to: c$\Program Files (x86)\ArcGIS\Server10.0\server\user\cfg.  These are the config files for the services and if they don't exist then the configs only exist in ram.
0 Kudos
NadeemQazi
Regular Contributor
Make sure you have a bunch of cfg files in a folder similar to: c$\Program Files (x86)\ArcGIS\Server10.0\server\user\cfg.  These are the config files for the services and if they don't exist then the configs only exist in ram.


Thnx , when i change the permission rights on this directory , then config files are created. and now the services are not volatile. However when i create geo processing service using the ARCGIS server than it is created, published and running but this geo processing service is not available in the ARGIS viewer for flex. I also checked the widget but even than could not access the published geo processing service. any help
regardsa
nadeem
0 Kudos
TrevorWeiland
Regular Contributor
first, do you have AGS security turned on?  If so, have you granted permission for the appropriate user roles to use the  geoprocessing service?

second, is the service running without errors on startup?

third, have you refreshed the rest cache since it was started?

You should be able to see this geoprocessing service on the /rest/services page.
0 Kudos