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 8089:            {
Line 8090:                Video_Prp rec = new Video_Prp();
Line 8091:                rec.id = Convert.ToInt32(dr[0]);
Line 8092:                rec.nam = dr[1].ToString();
Line 8093:                rec.url = dr[2].ToString();

Source File: c:\inetpub\vhosts\solversolution.in\neweramadlauda.in\App_Code\Class1.cs    Line: 8091

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542542
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   System.String.System.IConvertible.ToInt32(IFormatProvider provider) +58
   nslab.Video.Show_All_Data() in c:\inetpub\vhosts\solversolution.in\neweramadlauda.in\App_Code\Class1.cs:8091
   Video_Gallery.listbindV() in c:\inetpub\vhosts\solversolution.in\neweramadlauda.in\Video_Gallery.aspx.cs:19
   Video_Gallery.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\solversolution.in\neweramadlauda.in\Video_Gallery.aspx.cs:12
   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