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 920:
Line 921:            //if (pmin == pmax)
Line 922:                xxpre = 100-((100 * ((price / price_old))));
Line 923:            //else prezzoreale = shop.currentcurrencysymbol+ pmin + " / " + shop.currentcurrencysymbol + pmax;
Line 924:

Source File: c:\WEBFARM_MILITARIA\localuser\ftpinfabbrica\product.aspx.cs    Line: 922

Stack Trace:


[DivideByZeroException: Attempted to divide by zero.]
   System.Decimal.FCallDivide(Decimal& d1, Decimal& d2) +0
   System.Decimal.op_Division(Decimal d1, Decimal d2) +24
   product.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_MILITARIA\localuser\ftpinfabbrica\product.aspx.cs:922
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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