Input string was not in a correct format.

Server Error in '/lnc' 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 134:				
Line 135:					if (HttpContext.Current.Request.QueryString["Issue_ID"] != null && HttpContext.Current.Request.QueryString["Issue_ID"].ToString() != "")
Line 136:						issueID = Convert.ToDecimal(HttpContext.Current.Request.QueryString["Issue_ID"].ToString());
Line 137:				
Line 138:					myIssueObject = dataAccess.GetJournalIssueObject(journalID, issueID);

Source File: c:\Inetpub\wwwroot\kenticofolder\App_Code\Global\CMS\CMSCustom.cs    Line: 136

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9586043
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +146
   System.Convert.ToDecimal(String value) +68
   CMSCustom.ResolveCustomMacro(MacroResolver sender, String expression, Boolean& match) in c:\Inetpub\wwwroot\kenticofolder\App_Code\Global\CMS\CMSCustom.cs:136
   CMS.Compatibility.MacroResolverCompatibility.ResolveCustomMacro(Object sender, MacroEventArgs e) +57
   CMS.GlobalHelper.MacroResolver.ResolveCustomMacro(String baseExpression, String fullExpression, Object& result, Boolean& match) +79
   CMS.GlobalHelper.MacroResolver.ResolveMacro(String macro, String type, String expression, Boolean& match, Boolean logOperations, Boolean calledAsBase) +306
   CMS.GlobalHelper.MacroResolver.ResolveMacroHandler(String type, String bracketType, String expression, String replacement, Object parameter) +168
   CMS.GlobalHelper.MacroResolver.ProcessMacros(String text, String replacement, Object parameter, OnProcessMacro processMacro, String type) +436
   CMS.GlobalHelper.MacroResolver.ResolveMacros(String inputText, Int32 recursionLevel) +528
   CMS.GlobalHelper.MacroResolver.FinalizeResult(Object result, Boolean allowRecursion, Boolean processChilden) +447
   CMS.GlobalHelper.MacroResolver.ResolveMacro(String macro, String type, String expression, Boolean& match, Boolean logOperations, Boolean calledAsBase) +1316
   CMS.GlobalHelper.MacroResolver.ResolveMacroHandler(String type, String bracketType, String expression, String replacement, Object parameter) +168
   CMS.GlobalHelper.MacroResolver.ProcessMacros(String text, String replacement, Object parameter, OnProcessMacro processMacro, String type) +436
   CMS.GlobalHelper.MacroResolver.ResolveMacros(String inputText, Int32 recursionLevel) +528
   CMS.GlobalHelper.MacroResolver.ResolveMacros(String inputText) +12
   CMS.PortalEngine.PageInfo.get_PageTitle() +401
   CMS.CMSHelper.ContextData.get_CurrentTitle() +55
   CMS.UIControls.DocumentBase.Load() +518
   CMS.UIControls.ContentPage.OnLoad(EventArgs e) +49
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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