[mapguide-users] Create programmatically a map

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Wed Feb 18 09:59:11 EST 2009

Just to be sure...

The xml you posted is the ResourceHeader, and not the ResourceContent, 
so it does not really show what the problem may be.
The error from the log states that the runtime map is not created, which 
is strange because a WebLayout cannot reference a runtime map.
The other error you posted seemed to indicate that the Print command was 
invalid inside the WebLayout.

Can you try so save the xml, just before you write it to the MgByteStream?
Then try to post the file, using the SetResource in the webform 
mentioned earlier.
If you get the same error, try to post the file somewhere, and provide a 
Be carefull not to copy/paste, but post the actual file.

Btw. how large is the file? larger than 8K?

Regards, Kenneth Skovhede, GEOGRAF A/S

More information about the mapguide-users mailing list