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 530:        string TechnicalTemp = HttpContext.GetGlobalResourceObject("Resource", "RashinwebTechnical").ToString();
Line 531:        Eshop_ProductsListEntity _ProductList = Eshop_ProductsList.GetByID(ProductListID, false, PortalSiteName, PortalLanguage);
Line 532:        if(_ProductList.Other4 != string.Empty && Type == "Property")
Line 533:        {
Line 534:            string[] ListProperty = _ProductList.Other4.Trim(',').Split(',');

Source File: d:\WebSites\RashinWeb\_Gadgets\Eshop\HTMLEshopPage.ascx.cs    Line: 532

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _Gadgets_Eshop_HTMLEshopPage.RashinwebGettFeatchers(Int32 ProductListID, String Type) in d:\WebSites\RashinWeb\_Gadgets\Eshop\HTMLEshopPage.ascx.cs:532
   _Gadgets_Eshop_HTMLEshopPage..ctor(Int32 GadgetLoadedID) in d:\WebSites\RashinWeb\_Gadgets\Eshop\HTMLEshopPage.ascx.cs:138

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +365
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +34
   BusinessLayer.PortalBaseUserControl.LoadControl(String UserControlPath, Object[] constructorParameters) in d:\WebSites\RashinWeb\App_Code\_PortalBaseClasses\PortalBaseUserControls.cs:111
   BusinessLayer.Site_MasterPages.GenerateCodesInTemplate(PortalBaseUserControl CurrentControl, String& HTMLPage, String SiteName, Int32 EmamzadehID, Languages Language) in d:\WebSites\RashinWeb\App_Code\PagesClasses\MasterPage\Site_MasterPages_Business.cs:113
   _ascx_Layouts_Model_2..ctor(Site_LayoutInModulesEntity _Site_LayoutInModulesEntity, Page _WebPage, String ModuleName, String ModulePage) in d:\WebSites\RashinWeb\_ascx\Layouts\3.ascx.cs:242

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +365
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +34
   BusinessLayer.PortalUserPage.LoadControl(String UserControlPath, Object[] constructorParameters) in d:\WebSites\RashinWeb\App_Code\_PortalBaseClasses\PortalUserPage.cs:36
   Library_Show.Page_Load(Object sender, EventArgs e) in d:\WebSites\RashinWeb\Eshop\Show.aspx.cs:28
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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