Autodesk MapGuide Developer
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
MapGuide Server Informatio n Properties
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
507 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
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
Re: MapGuide Server Informatio n Properties
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
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.

