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 211:        else if (search_for == "related")
Line 212:        {
Line 213:            string ori_product_name = search_id.Replace("|", " ");
Line 214:			string replaced_search_id = search_id.Replace("|x", "").Replace("|pcs","");
Line 215:            dic.Add("?search_id", replaced_search_id);

Source File: i:\hostingspaces\cartridg\cartridge.com.sg\wwwroot\App_Code\product.cs    Line: 213

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   product.RetrieveProductBy(String search_for, String search_col, String search_id, String user_id, Int32 limit_count) in i:\hostingspaces\cartridg\cartridge.com.sg\wwwroot\App_Code\product.cs:213
   special_product.RetrieveProduct() in i:\hostingspaces\cartridg\cartridge.com.sg\wwwroot\special-product.ascx.cs:43
   special_product.Page_Load(Object sender, EventArgs e) in i:\hostingspaces\cartridg\cartridge.com.sg\wwwroot\special-product.ascx.cs:37
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762