Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 377:
Line 378:        conexaoMySQL.Close()
Line 379:        strSQL = "SELECT * from cart_control where id_company='" & Session("id_company_menu").ToString & "'"
Line 380:        Dim MysqlCmd As MySqlCommand = New MySqlCommand(strSQL, conexaoMySQL)
Line 381:        Dim drMySql As MySqlDataReader

Source File: C:\Inetpub\vhosts\zbynet.com\httpdocs\art\menu_cart.aspx.vb    Line: 379

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   menu_cart.top() in C:\Inetpub\vhosts\zbynet.com\httpdocs\art\menu_cart.aspx.vb:379
   menu_cart.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\zbynet.com\httpdocs\art\menu_cart.aspx.vb:363
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975