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 30:         Lab_Pictures.text=Get_Application_Pictures("30")
Line 31:         'Shopping_Card_Return()
Line 32:         answer = encrypt.Store_Page_Number(Session("RT"), Page_ID, 0, 0, 0, 0, 0, Request.ServerVariables("SCRIPT_NAME"))
Line 33: 
Line 34:         Dim Result as string=nothing

Source File: C:\htdocs\AFMEngBiz\HotStamping\Hot_Stamping_Projects\Hot_Stamping_Supplies\Die_Bond_Tape.aspx    Line: 32

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +299
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +98

[InvalidCastException: Conversion from string "34188l" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +273
   ClassLibrary1.shopping_Cart.Sales_Cart.Store_Page_Number(String ID, Int32 Page_ID, Int32 var_Model_ID, Int32 var_Part_Type_ID, Int32 var_Built_by_ID, Int32 var_Heater_Head_ID, Int32 var_Control_Box_ID, String Page_URL) +80
   ASP.hotstamping_hot_stamping_projects_hot_stamping_supplies_die_bond_tape_aspx.Page_Load(Object sender, EventArgs e) in C:\htdocs\AFMEngBiz\HotStamping\Hot_Stamping_Projects\Hot_Stamping_Supplies\Die_Bond_Tape.aspx:32
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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