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
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