Server Error in '/' Application.

Attempted to divide by zero.

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.DivideByZeroException: Attempted to divide by zero.

Source Error:


Line 85:         Dim Dt As Data.DataTable
Line 86: 
Line 87:         Dt = Instance.GetAll(BedataRow, -1, CurrentPage)
Line 88: 
Line 89: 

Source File: c:\inetpub\wwwroot\DJWearArassociates\media\Default.aspx.vb    Line: 87

Stack Trace:


[DivideByZeroException: Attempted to divide by zero.]
   AgentWare.GlobalFunctions.CalculatePageSize(Int32 TotalRecord, Int32 CurrentPage, Int32 CurrentPageSize) in Z:\Server-2\AgentWare_Libraries\Agentware\Common\Globals.vb:28
   AgentWare.NewsDAL.GetAll(String Conditions, Int32 CurrentPageNumber) in Z:\Server-2\AgentWare_Libraries\Agentware\DataAccess\NewsDAL.vb:43
   AgentWare.NewsBL.GetAll(NewsBE Bedatarow, String LimitExpretion, Int32 CurrentPage) in Z:\Server-2\AgentWare_Libraries\Agentware\BusinessLogic\NewsBL.vb:88
   Media_Default.Fill_RepeaterResult(Int32 CurrentPage) in c:\inetpub\wwwroot\DJWearArassociates\media\Default.aspx.vb:87
   Media_Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\DJWearArassociates\media\Default.aspx.vb:53
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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