[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
        mySite = New MgSite
        mgSessionID = mySite.CreateSession
        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

The error occurs at map.open
Resource was not found:

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:

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