Server Error in '/QB' Application.

Problem:\nCannot establish connection to the MapGuide Server.\n\nPossible Causes:\n-Your session has been idle for too long;\n-MapGuide Server is no longer responding;\n-Internet connection problems.\n\nSolution:\nRestart your application / session, restart the MapGuide Server service, or contact with the server administrator.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: OSGeo.MapGuide.MgConnectionFailedException: Problem:\nCannot establish connection to the MapGuide Server.\n\nPossible Causes:\n-Your session has been idle for too long;\n-MapGuide Server is no longer responding;\n-Internet connection problems.\n\nSolution:\nRestart your application / session, restart the MapGuide Server service, or contact with the server administrator.

Source Error:


Line 7:      MgUserInformation userInfo = new MgUserInformation(ConfigurationManager.AppSettings["mgusername"], ConfigurationManager.AppSettings["mgpassword"]);
Line 8:      MgSite site = new MgSite();
Line 9:      site.Open(userInfo);
Line 10:     String mysessionid = site.CreateSession();
Line 11:     Session["mgsessionid"] = mysessionid;

Source File: c:\inetpub\wwwroot\QB\Property.aspx    Line: 9

Stack Trace:


[MgConnectionFailedException: Problem:\nCannot establish connection to the MapGuide Server.\n\nPossible Causes:\n-Your session has been idle for too long;\n-MapGuide Server is no longer responding;\n-Internet connection problems.\n\nSolution:\nRestart your application / session, restart the MapGuide Server service, or contact with the server administrator.]
   OSGeo.MapGuide.SWIGExceptionHelper.ThrowCustomException(String className, IntPtr cptr) +521
   OSGeo.MapGuide.MapGuideCommonApiPINVOKE.MgSite_Open__SWIG_0(IntPtr jarg1, IntPtr jarg2) +0
   ASP.property_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\QB\Property.aspx:9
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0