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: 

MgSiteConnection error

0 REPLIES 0
Reply
Message 1 of 1
santosh.venkatesh
459 Views, 0 Replies

MgSiteConnection error

Hi,

 I am currently upgrading my project from Autodesk MapGuide 2011 to AIMS 2014(C#,ASP.NET Project, SQL Server 2008R2)

I have changed the server site URL

from http://localhost/mapguide2011/mapviewerajax/?SESSION=<%=Session["sid"]%>&WEBLAYOUT=<%=Session["layou... 

to "http://localhost/mapserver2014/mapviewerajax/?SESSION=<%=Session["sid"]%>&WEBLAYOUT=<%=Session["lay...

and web.config from path 

from <add key="WebConfigPath" value="c:\\Program Files\\Autodesk\\MapGuideEnterprise2011\\WebServerExtensions\www\\webconfig.ini" />

to <add key="WebConfigPath" value="c:\\Program Files\\Autodesk\\Autodesk Infrastructure Web Server Extension 2014\\www\\webconfig.ini" />

 

When I run the application the map loads fine the first time but when I perform a select/get selected feature operation then I run the code 

        String mgSessionId = Session["Session"].ToString();
        String mgMapName = "map";

        String configPath = ConfigurationManager.AppSettings["WebConfigPath"];
        MapGuideApi.MgInitializeWebTier(configPath);
        MgUserInformation userInfo = new MgUserInformation(mgSessionId);
        MgSiteConnection siteConnection = new MgSiteConnection();
        siteConnection.Open(userInfo);

 the siteConnection.Open(userInfo) throws an error "Session has expired or is invalid. Please log in again"

 Therefore I am unable to get the selected object from the map, Please suggest/guide me as to how I can hadle this

 

Regards

Santosh V

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report