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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Autolanka.UI.Controls.RentDetails.get_Image0() in D:\Dev\AutoLanka\Web\WebApp\Rent\Controls\RentDetails.ascx.cs:130
   Autolanka.UI.Controls.RentDetails.GetImages() in D:\Dev\AutoLanka\Web\WebApp\Rent\Controls\RentDetails.ascx.cs:117
   Autolanka.UI.Controls.RentDetails.BindData() in D:\Dev\AutoLanka\Web\WebApp\Rent\Controls\RentDetails.ascx.cs:52
   Autolanka.UI.Controls.RentDetails.set_AD(RentCar value) in D:\Dev\AutoLanka\Web\WebApp\Rent\Controls\RentDetails.ascx.cs:44

[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.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +168
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +105
   System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +100
   System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) +23
   RentDetails.FormLoad(RentCar ad) in D:\Dev\AutoLanka\Web\WebApp\Rent\RentDetails.aspx.cs:105
   RentDetails.Page_Load(Object sender, EventArgs e) in D:\Dev\AutoLanka\Web\WebApp\Rent\RentDetails.aspx.cs:39
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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