Server Error in '/' Application.

Input string was not in a correct format.

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: System.FormatException: Input string was not in a correct format.

Source Error:


Line 240:        #region Load ครั้งแรกและมีใน Base
Line 241:        DockLayoutBLLXML myDockLayoutBLLXML = new DockLayoutBLLXML();
Line 242:        List<DockLayout> dataCollection = myDockLayoutBLLXML.ReadXMLDockLayout(Convert.ToInt32(mid));
Line 243:        try
Line 244:        {

Source File: d:\WebSite\ilovetogo.com\Template.master.cs    Line: 242

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12838111
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +122
   System.Convert.ToInt32(String value) +48
   Template.LoadFromDataBaseForFornt(String mid, Boolean IsOrderGadgetIndex) in d:\WebSite\ilovetogo.com\Template.master.cs:242
   Template.ShowContent() in d:\WebSite\ilovetogo.com\Template.master.cs:230
   Template.OnInit(EventArgs e) in d:\WebSite\ilovetogo.com\Template.master.cs:48
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Control.InitRecursive(Control namingContainer) +318
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +416


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