Server Error in '/web_backup/classic' Application.

Unable to cast object of type 'System.Int32' to type 'System.String'.

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.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.

Source Error:


Line 37:                 str2 = str1 + "var dvTotalImages = " + num.ToString() + ";\n";
Line 38:                 for (int index = 0; index < num; ++index)
Line 39:                     str2 = str2
Line 40:                         + "leftrightslide["
Line 41:                         + index.ToString()

Source File: \\boswinfs03\home\users\web\b770\whl.classicauto\web_backup\CLASSIC\view_club_members.aspx.cs    Line: 39

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.]
   Classic.view_club_members.CsToJsArray() in \\boswinfs03\home\users\web\b770\whl.classicauto\web_backup\CLASSIC\view_club_members.aspx.cs:39
   Classic.view_club_members.Page_Load(Object sender, EventArgs e) in \\boswinfs03\home\users\web\b770\whl.classicauto\web_backup\CLASSIC\view_club_members.aspx.cs:303
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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