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 236:                Dim dsSub As DataSet = New DataSet()
Line 237:                dsSub = myDataBase.SelectSql(str, "company")
Line 238:                subName = " - " & dsSub.Tables("company").Rows(0)("company")
Line 239:            Else
Line 240:                str = ("select virtualshops_products.*,virtualshops_category.supplyTime from virtualshops_products " & _

Source File: C:\inetpub\wwwroot\gshop\products.aspx.vb    Line: 238

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   photoPrint_virtualShops.products.sqlString() in C:\inetpub\wwwroot\gshop\products.aspx.vb:238
   photoPrint_virtualShops.products.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\gshop\products.aspx.vb:118
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


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