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 5:      <div class="carousel-inner" style="height: 100%;">
Line 6:          <div class="carousel-item active">
Line 7:              <img class="second-slide" src="<%=VacancyData.ScreenPath.ToString()==""?"https://www.handary.com/img/news/newsthumb_10088.jpeg":(VacancyData.ScreenPath.ToString().Contains("://")?VacancyData.ScreenPath.ToString():VacancyData.ScreenPath.ToString().Substring(0, VacancyData.ScreenPath.ToString().LastIndexOf(".")) + "_o." + VacancyData.ScreenPath.ToString().Substring(VacancyData.ScreenPath.ToString().LastIndexOf(".") + 1)) %>" alt="<%=VacancyData.Title.ToString() %>">
Line 8:              <div class="carousel-caption text-left text-dark" style="bottom: 50px; right: auto; text-shadow: 1px 1px 1px rgba(255,255,255,.2); max-width: 40%;">
Line 9:                <span style="display:block; font-size:1.7rem; font-weight:400;" class="text-white">Job Vacancy</span>

Source File: c:\inetpub\vhosts\handary.com\v2022.handary.com\career\control\vacancyshow.ascx    Line: 7

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.career_control_vacancyshow_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\vhosts\handary.com\v2022.handary.com\career\control\vacancyshow.ascx:7
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


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