[mapguide-users] Unable to open runtime map

btenbroeck btenbroeck at gmail.com
Thu Jan 17 03:53:39 EST 2008


I'm trying to use the map.open to get a handle on the map created by the
viewer, so that we may add layers. (vb.net)
This in page load:
        webLayout = Application("MG_WEBLAYOUT").ToString
        InitializeWebTier()
        mySite = New MgSite
        mySite.Open(mgUserInfo)
        mgSessionID = mySite.CreateSession
        utility.ConnectToServer(mgSessionID)
        siteConnection = utility.GetSiteConnection 'siteConnection declared
as friend
        sMapIFrame += mgSessionID + "&WEBLAYOUT=" + webLayout + "' /> "

(Map loads in viewer no problem)

The following in a button sub (to ensure all has loaded)
Dim mapName As String = "Floor"
Dim map As New MgMap(siteConnection) 'siteConnection still valid at this
point
map.Open(mapName)

The error occurs at map.open
Resource was not found:
Session:08ff994c-0000-1000-8000-001731cab015_en_C0A8000A0AFC0AFB0AFA//Floor.Map

However, the Map IS Floor (at least in the Library), and the Session info is
correct (Same as mgSessionID in the page.load)

I'm using syntax referenced:
http://trac.osgeo.org/mapguide/ticket/173

Any insight would be appreciated!

-- 
View this message in context: http://www.nabble.com/Unable-to-open-runtime-map-tp14914637s16610p14914637.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list