Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MapGuide Server Information Properties

1 REPLY 1
Reply
Message 1 of 2
tint
798 Views, 1 Reply

MapGuide Server Information Properties

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
1 REPLY 1
Message 2 of 2
sakkaku
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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report