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 35:             {
Line 36:                 string imageOverFileName = "";
Line 37:                 imageOverFileName = control.ImageUrl.Remove(control.ImageUrl.IndexOf("."));
Line 38:                 imageOverFileName += "Over" + control.ImageUrl.Substring(control.ImageUrl.IndexOf("."));
Line 39: 

Source File: C:\Inetpub\wwwroot\CMS\DesktopModules\Images\RollOverImageManager.cs    Line: 37

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ClearConcepts.DesktopModules.Images.RollOverImageManager.InitializeImage(Image control, String imageURLMouseOver) in C:\Inetpub\wwwroot\CMS\DesktopModules\Images\RollOverImageManager.cs:37
   ClearConcepts.DesktopModules.Booking.CustomerInquiry.InitModule() in C:\Inetpub\wwwroot\CMS\DesktopModules\Booking\CustomerInquiry.ascx.cs:179
   ClearConcepts.DesktopModules.Booking.CustomerInquiry.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\CMS\DesktopModules\Booking\CustomerInquiry.ascx.cs:67
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433