Server Error in '/' Application.

Value was either too large or too small for a Decimal.

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.OverflowException: Value was either too large or too small for a Decimal.

Source Error:


Line 102:        End Try
Line 103:
Line 104:        Julgado = (i * 100) / Total
Line 105:        Julgado = Math.Round(Julgado, 2)
Line 106:        NaoJulgado = 100 - Julgado

Source File: C:\home\site\wwwroot\Brasileiro\Andamento.aspx.vb    Line: 104

Stack Trace:


[OverflowException: Value was either too large or too small for a Decimal.]
   System.Decimal..ctor(Double value) +0
   Brasileiro_Andamento.PegaJulgado(String Segm, String IdQr) in C:\home\site\wwwroot\Brasileiro\Andamento.aspx.vb:104
   Brasileiro_Andamento.Page_Load(Object sender, EventArgs e) in C:\home\site\wwwroot\Brasileiro\Andamento.aspx.vb:13
   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.4690.0