[mapguide-users] Error openning a map

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Thu Oct 23 03:20:59 EDT 2008


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:
>
>   <http://www.avalon.com.es>
>
> 	
>
> *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.
> imazo at avalon.com.es <mailto:imazo at avalon.com.es>
>
> 	
>
>  
>
>  
>
> 	
>
>  
>
> 	
>
>  
>
> 	
>
>  
>
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
Skipped content of type multipart/related


More information about the mapguide-users mailing list