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 767:            }
Line 768:
Line 769:            for (int VoteCount = donationStart / thisContest.votingFee; VoteCount <= 2500; VoteCount++)
Line 770:            {
Line 771:                if (VoteCount > 1 && addS == "")

Source File: c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs    Line: 769

Stack Trace:


[DivideByZeroException: Attempted to divide by zero.]
   _EntryDonation.PopulateNumberOfVotes() in c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs:769
   _EntryDonation.DrawDonationForm() in c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs:709
   _EntryDonation.Page_Init(Object sender, EventArgs e) in c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs:210
   System.Web.UI.Control.OnInit(EventArgs e) +105
   System.Web.UI.Page.OnInit(EventArgs e) +15
   System.Web.UI.Control.InitRecursive(Control namingContainer) +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1597


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