Hi

Check inside serverconfig.ini (on the server): the MachineIp and IpAddress parameter should have the exact same value as IpAddress in webconfig.ini. For example if on serverconfig.ini you have 127.0.0.1 you should change to 192.168.177.128.

Riccardo

Il 15/10/2013 16:31, Liglio ha scritto:
Hi,

I have a server installed with Windows server 2012 and mapguide server 2.5.
I am developing a application using Fusion and .NET. When the application is
installed at the server everything works fine, but if I try to run the
application from my workstation Fusion recieves a html response "Cannot
establish connection to the Infrastructure Map Server" as shown below. The
webconfig.ini is pointing to the right server IP address at
SiteConnectionProperties (IpAddress=192.168.177.128).

If someone can help, I appreciate.

var appDefUrl = Fusion.getQueryParam('ApplicationDefinition');
if(appDefUrl && (
     appDefUrl.indexOf('Library') == 0 ||
     appDefUrl.indexOf('Session') == 0)){
     var passedSessionId = Fusion.getQueryParam('Session');
     if(passedSessionId == null || passedSessionId == "" ){
         createSessionId(Fusion.getQueryParam("Username"),
Fusion.getQueryParam("Password"));
     }else{
         Fusion.sessionId = passedSessionId;
     }
     var xhr = new getXmlHttpRequest();
     var mapAgentUrl = getAgentUrl();
     xhr.open("GET", mapAgentUrl +
"?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&RESOURCEID="
+ appDefUrl + "&FORMAT=text%2Fxml&SESSION="+ Fusion.sessionId, false);
     xhr.send(null);

//******************** The error is here ***********************
//***** xhr.responseXML is null  and  xhr.response is shown bellow
***********

     var appDefXML = xhr.responseXML.documentElement;

//*********************************************************

     if(appDefXML){
         var googleElement =
appDefXML.getElementsByTagName("GoogleScript")[0];
         var yahooElement = appDefXML.getElementsByTagName("YahooScript")[0];
         var veElement =
appDefXML.getElementsByTagName("VirtualEarthScript")[0];
         var osmElement =
appDefXML.getElementsByTagName("OpenStreetMapScript")[0];

         addElement(googleElement);
         addElement(yahooElement);
         addElement(veElement);
         addElement(osmElement);
     }
}

xhr.response:
<html>
<head>
<title>MgConnectionFailedException</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Problem:\nCannot establish connection to the Infrastructure Map
Server.\n\nPossible Causes:\n-Your session has been idle for too
long;\n-Infrastructure Map Server is no longer responding;\n-Internet
connection problems.\n\nSolution:\nRestart your application / session,
restart the Infrastructure Map Server service, or contact with the server
administrator.

Problem:\nCannot establish connection to the Infrastructure Map
Server.\n\nPossible Causes:\n-Your session has been idle for too
long;\n-Infrastructure Map Server is no longer responding;\n-Internet
connection problems.\n\nSolution:\nRestart your application / session,
restart the Infrastructure Map Server service, or contact with the server
administrator.

</body>
</html>



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-cannot-establish-connection-to-the-Mapguide-Server-tp5083718.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to