Error Loading Map Services
Hi,
We work to setup Geocortex map website since few weeks now.
Your configuration is next:
1. One Geocortex Essential server 2008 R2 with IIS website.
2. One Esri server where we have geodatabase and maps.
This 2 servers have 2 LAN cards, one of this cards on each server is connect on my internal VLAN and the second cards of each server is connect on my DMZ lan.
The Geocortex Essential website run perfectly on the lan, we could connect on it with the HTML 5 viewer and the map come on the screen and work.
The problem is when we want to access at the Geocortex website by the external side (WAN).
External access configuration:
On the firewall , we have add somes rules to give access by the WAN at the GeoCortex website.
First rules WAN ->DMZ Public IP make a redirection to the internal IP associate at my GeoCortex network cards connect on my DMZ.
Second rules DMZ->WAN where the Geocortex ip on the DMZ anwser at any demand from the WAN.
This two rules give me access at the website by the external.
When the website load, the left, right, top and bottom parts of the background load, but the map who would be in the center never load and after few times an error message pop-up come on the screen.
Title: "Error Loading Map Services"
Message: "There was a problem loading one or more map services. The following map services may be unavailaible:"
And I have my two map service name listed in the message.
We do not find a solution at this problem, who would be functionnal without make it our lan at risk.
When I load the website and check with netstat -f function, I find than the local browser try to talk at the lan ip address of my esri server, but this ip is not availaible in public on the internet.
Actually, the "Connection string" of each map services is an URL to my esri server lan card ip.
Like each server use 2 cards, we have change the ip in each string for the ip in the DMZ side, the connection test is a succes, but when we try the website
on the lan side, we obtain the same loading map services error than we had on the wan side...
So we have change another time the connection string to put the server name. The website work again on the lan , but the error is always present on the wan side.
Like we use somes VLAN, I have make the test from my home last nigth. When I go on the website it charge and give the same errors.
If I use the netstat -f command I obtain the same line where the website try to reach the internal lan ip address and do note reveive any anwsers.
I have continu to search the source of this call... Have find a files in the "REST Elements\Sites" folder of GeoCortex server.
The xml files "RestAppSettings.xml" contain two follows lines where it call the lan ip of my esri server !
~~<ArcGisServer DisplayName="MatriceGraphique" EnableLayerSearch="false" EnableUserSearch="false" ID="7" PasswordEncrypted="false" Url="http://ip /arcgis/rest/services" UseHttpAuthentication="false" />
<ArcGisServer DisplayName="MatriceGraphique" EnableLayerSearch="false" EnableUserSearch="false" ID="8" PasswordEncrypted="false" Url="http://ip /arcgis/rest/services/Basemap/Aerien_basemap_v3/MapServer" UseHttpAuthentication="false" />
So I make the test and replaces the ip on this two lines with my public ip and I restart the server.
I test again , same result, always this loading map services error.
Now I ask your help, all ideas are welcome !
Thank you !
-
Hello,
I (also a newbie) have had a similar issue. I have built my site with multiple map services, both dynamic and cached. Within the Silverlight viewer, things work just fine for me and a few other people. When I send the link to the launch the viewer to a different group of of users, they get the same error that loading the map layers failed.
Did I need to set permissions somewhere? I'm not sure why a few people can see the map, but others cannot.
We're using Essentials 3.7 and Silverlight viewer 1.4.
Thank you.
ilima
0 -
Are all your users located within the same network environment?
Are the people having problems able to resolve the URL's of the map services? If you are on an intranet and using the computer name in the map service URL, try using a fully qualified DNS name (if your network is set up for it) or by using the IP address.Peter.
0 -
The problem was I didn't apply cross domain policy. Go to your root folder (C:\inetpub\wwwroot) and paste the following to an xml file;
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*"/>
</cross-domain-policy>Rx
0 -
If your service names changed you will need to update the connection url in the manager and it should pick them up.
0 -
If you also have SLV 1.7 you might want to take a look at this thread: (https://support.geocortex.com/essentialsGSCForum?id=906600000000AmGAAU) Problem with SL 1 7 map services won't load
Steve
0 -
Steven, thank you for the help, that fixed it. It was Silverlight 1.7 and Essentials 3.11.1. Went in, changed it so the domain name wasn't included and works perfect now. I appreciate the help.
Evan
0 -
Hi Sheri, this thread might help: (https://support.geocortex.com/essentialsGSCForum?id=9066000000007y2AAA) Error Loading Map Services - problem loading some map data.
0 -
We're still pending a domain name, unfortunately (any day now!). But it's odd that I can view/see all the services just fine in the HTML5 viewer.
0 -
I am just setting up a development server, and got this error! Upon finding a thread I had commented on with a potential solution, and then that solution not working for me... it made me laugh.
What I discovered here was that the default url that launched from Essentials Manager was the problem.
This is the default:
I had to remove all the extra stuff after "servername" at the beginning of the url:
http://servername/SilverlightViewer/Viewer.html?ViewerConfig=http://servername.city.victoria.bc.ca.cityad/Geocortex/Essentials/REST/sites/Test/viewers/Silverlight/virtualdirectory/Config/Viewer.xml
Then it worked.
As Sheri experienced, the HTML5 url worked as is with no edits.
Thought it was worth mentioning in case someone else runs into this problem.
0 -
You need to be more specific, I have no idea what version of anything you are using nor the condition of your ArcServer or any recent changes. But based on my recent issues with that same error, i t most likely has to do with your ArcServer. Either they are innaccessable (permissions issue) or your server is down/not functioning correctly. Before/during my migration to a new server and upgrade from 10.0 to 10.2.2, I had many many times I would recieve this issue. Every time, it was my ArcServer. Check your REST services and see if you see the list of services, if they are there, make sure you go all the way to layer level, I found errors sometimes there.
Also try to re-add your map service to your GeoCortex map. It may give you more clues. In the mananger, if you click on the little yellow warning triangle, it will give you a bigger warning too.
I would call ESRI tech support and look for any ArcServer issues.
By the way, this has nothing to do with Silverlight, you would get the same errors in HTML or any viewer.
0 -
Thanks for your response jpursell.
I am currently running ArcGIS for Server 10.2. While investigating further, I have determined that this issue is a result of a security exception that occurs while trying to connect to the REST endpoint. It states that I need to ensure a cross domain policy file is available at the root of my server to allow requests for the silverlight application. It is my understanding that silverlight requires a clientaccesspolicy.xml file?
I have managed to locate a copy of the .xml file. My questions is, how do I go about adding this file to the root of my web server?
P.S. I can load the map service using HTML5 without any errors. Only with Silverlight viewer 1.10 do I receive this error.
0 -
Thanks again jpursell,
So I took a peek in C:\inetpub\wwwroot and located the two .xml files sitting there all snug as a bug. So that may or may not be the issue....
Another user on the geocortex forum suggested the following:
What I discovered here was that the default url that launched from Essentials Manager was the problem.
This is the default:
http://servername.city.victoria.bc.ca.cityad /SilverlightViewer/Viewer.html?ViewerConfig=http://servername.city.victoria.bc.ca.cityad/Geocortex/Essentials/REST/sites/Test/viewers/Silverlight/virtualdirectory/Config/Viewer.xml
I had to remove all the extra stuff after "servername" at the beginning of the url:
http://servername/SilverlightViewer/Viewer.html?ViewerConfig=http://servername.city.victoria.bc.ca.cityad/Geocortex/Essentials/REST/sites/Test/viewers/Silverlight/virtualdirectory/Config/Viewer.xml
Then it worked.
I tried this with my URL and it worked as well... Now my question is, why does this work?
0 -
I know we had problems with this as well, but since I don't manage the GeoCortex server, I am not sure why it worked. Wish I could answer that!
0 -
There is a chance that the viewer proxy needs to be configured, as you mention that you are connecting with IP addresses. As a quick test, can you change the viewer proxy to mustMatch=false. This file is located in the viewer's IIS directory.
0 -
Ok I will try that's, actually the mustMatch=true, I will change it for false to make a test.
When I check in the proxy.config I view many line about server link demo, but no trace about the ip of my geocortex or my esri server.
It's ok like this or I need to add the ip of my esri server in the proxy files ?
I have find another file in the Sites\VirtualDirectory\WorkFlows\MessageLegal.xaml
I suppose than this is the first pop-up about legal advise who come on the screen when we load the website.
If I open this file in notepad , I find a line who make a "QueryTask1" Call to my esri server at the 6080 ports and ask for a folder with the name of one of the map service present in the error message.
Do you know if this config is execute on the server or in local by the user broswer ?
Thank you !
0 -
This config is respected only in the viewer client.
The idea is that you add all known/allowed servers to this config file to prevent errors on cross domain requests. The typical usecase is that you enter all Essentials and ArcGIS server addresses in here (by IP or server.domain)
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
16 Kommentare