Server Error in '/' Application.

Specified cast is not valid.

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: Specified cast is not valid.

Source Error:


Line 202:        DataRow row = good_table.Rows[0];
Line 203:        //Картинка
Line 204:        ShowImage((int)row["type"], row["name"].ToString(), row["id"].ToString(),
Line 205:                  Goods.GetExist(row), Goods.GetNewGood(row), Goods.GetToOrder(row));
Line 206:        ((Literal)Master.FindControl("ltHeader")).Visible = false;

Source File: e:\rooms\u149640\morezolota.ru\www\good.aspx.cs    Line: 204

Stack Trace:


[InvalidCastException: Specified cast is not valid.]
   Default2.ShowGood() in e:\rooms\u149640\morezolota.ru\www\good.aspx.cs:204
   Default2.Page_Load(Object sender, EventArgs e) in e:\rooms\u149640\morezolota.ru\www\good.aspx.cs:106
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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