Server Error in '/' Application.

Value cannot be null.
Parameter name: id

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.ArgumentNullException: Value cannot be null.
Parameter name: id

Source Error:


Line 41:             }
Line 42: 
Line 43:             pageCopy = pageCopy.Replace("[ENTRY-START]", TimeZoneInfo.ConvertTime(thisContest.startDateTimeEntry, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(thisContest.timezone)).ToString("T") + " (" + thisContest.timezone.Replace("Standard", "").Replace("Arabian  Time", "Gulf Standard Time") + ") on " + TimeZoneInfo.ConvertTime(thisContest.startDateTimeEntry, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(thisContest.timezone)).ToString(strDateFormat));
Line 44:             pageCopy = pageCopy.Replace("[ENTRY-END]", TimeZoneInfo.ConvertTime(thisContest.EndDateTimeEntry, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(thisContest.timezone)).ToString("T") + " (" + thisContest.timezone.Replace("Standard", "").Replace("Arabian  Time", "Gulf Standard Time") + ") on " + TimeZoneInfo.ConvertTime(thisContest.EndDateTimeEntry, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(thisContest.timezone)).ToString(strDateFormat));
Line 45:             pageCopy = pageCopy.Replace("[VOTING-START]", TimeZoneInfo.ConvertTime(thisContest.startDateTime, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(thisContest.timezone)).ToString("T") + " (" + thisContest.timezone.Replace("Standard", "").Replace("Arabian  Time", "Gulf Standard Time") + ") on " + TimeZoneInfo.ConvertTime(thisContest.startDateTime, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(thisContest.timezone)).ToString(strDateFormat));

Source File: c:\inetpub\wwwroot\gogophotocontest.com\Contests\Pages.aspx.cs    Line: 43

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: id]
   System.TimeZoneInfo.FindSystemTimeZoneById(String id) +642
   Contests_Pages.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\gogophotocontest.com\Contests\Pages.aspx.cs:43
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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