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 772:            }
Line 773:
Line 774:            for (int VoteCount = donationStart / thisContest.votingFee; VoteCount <= 2500; VoteCount++)
Line 775:            {
Line 776:                if (VoteCount > 1 && addS == "")

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

Stack Trace:


[DivideByZeroException: Attempted to divide by zero.]
   _EntryDonation.PopulateNumberOfVotes() in c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs:774
   _EntryDonation.DrawDonationForm() in c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs:714
   _EntryDonation.Page_Init(Object sender, EventArgs e) in c:\inetpub\wwwroot\gogophotocontest.com\Contests\ViewEntry.aspx.cs:215
   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.4092.0