Server Error in '/eip' 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 33:         Else
Line 34:             '尋找所屬網站的 ID
Line 35:             intMasterParrentC0 = getMasterParrentC0(c0)
Line 36:             ''尋找所屬網站的MasterPage
Line 37:             'Dim myconn As New SqlConnection(strConnectX)

Source File: C:\WWW\EIP_20160722\web\PicDoc\uptPicDoc.aspx.vb    Line: 35

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 "" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +273
   uptPicDoc.Page_PreInit(Object sender, EventArgs e) in C:\WWW\EIP_20160722\web\PicDoc\uptPicDoc.aspx.vb:35
   System.Web.UI.Page.OnPreInit(EventArgs e) +11854916
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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