Infrastructure Map Server Developer

Reply
Contributor
Posts: 20
Registered: ‎05-15-2007
Message 1 of 2 (555 Views)

MapGuide Server Information Properties

555 Views, 1 Replies
12-12-2009 11:30 PM
Hello All,
I am having a problem with the MapGuide.
Does anyone know how I can get
MapGuide Server Information Properties programatically
from desktop application(C# or vb.net).
Thanks in advance!
Michael
Valued Contributor
Posts: 51
Registered: ‎01-03-2007
Message 2 of 2 (555 Views)

Re: MapGuide Server Information Properties

12-14-2009 07:17 AM in reply to: tint
Look in /mapviewernet/serveradminhelper.aspx for an example (exerpt below):

MgServerAdmin serverAdmin = new MgServerAdmin();
serverAdmin.Open("localhost", cred);

string operation = Request.QueryString["OPERATION"];

//Get all information properties
MgPropertyCollection infoProp = serverAdmin.GetInformationProperties();

As for connecting from a desktop app, you will need to copy the webconfig.ini from the www directory and modify the host to point to your server (for when you call MapGuideApi.MgInitializeWebTier ).

I have done this on my machine for local debugging and doesn't seem to cause any issues.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community