That is one misleading message :).

In line 2+3, connect, but you have no session.
So, you cannot read anything from the session repository.
This means the sessionid string (internal) is empty, which is the exception you get.

If you want to read the runtime map, you must open the connection with the session ID,
not with a username/password (line 2+3).
Regards, Kenneth Skovhede, GEOGRAF A/S


Iñigo Mazo skrev:

 

AVALON Tecnologías de la Información, S.L.

Generamos Ideas, Construimos Soluciones

http://www.avalon.com.es

C/ Gran Vía 81, 8ª Planta Bilbao 48011 Teléfono: (+34) 94 441 51 40  Fax: (+34) 94 441 51 92

 

 

Hello,

 

We have a problem openning a map with MapGuide Studio 2009. Our code is this:

 

        MgSiteConnection siteConnection = new MgSiteConnection();

        MgUserInformation userInfo = new MgUserInformation("Anonymous", "");

        siteConnection.Open(userInfo);

        MgResourceService resService = (MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);

        MgFeatureService featureService = (MgFeatureService)siteConnection.CreateService(MgServiceType.FeatureService);

      
        MgMap map = new MgMap();

        map.Open(resService, "Sheboygan");

 

In this line returns this mistake: " {"Invalid argument(s):\n\t[0] = \" \"\nThe string cannot be empty."} "

 

Thank you.

 

Iñigo Mazo González

AVALON Tecnologías de la Información, S.L.
[EMAIL PROTECTED]

 

 

 

 

 


 

 


_______________________________________________ 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