Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 77:             while (nIsEnd != 1)
Line 78:             {
Line 79:                 if (LunarData[m] < 4095)
Line 80:                     k = 11;
Line 81:                 else

Source File: c:\HomePages\bpt-buddhism\BLL\language.ascx.cs    Line: 79

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   BLL_language.GetLunarCalendar(DateTime dtDay) in c:\HomePages\bpt-buddhism\BLL\language.ascx.cs:79
   BLL_language.Page_Load(Object sender, EventArgs e) in c:\HomePages\bpt-buddhism\BLL\language.ascx.cs:141
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +74
   System.Web.UI.Control.LoadRecursive() +120
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2848


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