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 115:    String CategoryImage = "";
Line 116:
Line 117:    DS = myShop.GetShopCategory(Convert2Integer(Application["ShopId"]), CategoryId);
Line 118:    if (DS.Tables.Count>0) {
Line 119:        DataTable Table1 = DS.Tables[0];

Source File: c:\eshopkey\ASP.Net\Shops\DoukissaNomikou\SearchShop2.aspx    Line: 117

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.searchshop2_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\eshopkey\ASP.Net\Shops\DoukissaNomikou\SearchShop2.aspx:117
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +94
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9496


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