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 215:                                            <tr>
Line 216:                                                <td style="padding-right: 12px; padding-bottom: 7px;text-align:left;font-weight:normal;">Net Price: </td>
Line 217:                                                <td style="padding-right: 12px; padding-bottom: 7px;text-align:left; font-weight:normal;"><%# CurrencyFormatter.ssiFormatNetPrice(getNetPrice(), HttpContext.Current.Session("UserCurrencyGuid"))%>  </td>
Line 218:                                            </tr>
Line 219:                                        </table>                                                                                                                                                                                                              

Source File: C:\inetpub\wwwroot\ShopRemoteTool\templates\product.aspx    Line: 217

Stack Trace:


[OverflowException: Value was either too large or too small for a Decimal.]
   System.Decimal..ctor(Double value) +0
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(Object Value, NumberFormatInfo NumberFormat) +1388
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(Object Value) +11
   ASP.templates_product_aspx.__DataBind__control22(Object sender, EventArgs e) in C:\inetpub\wwwroot\ShopRemoteTool\templates\product.aspx:217
   System.Web.UI.Control.OnDataBinding(EventArgs e) +84
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.WebControls.FormView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1782
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +67
   System.Web.UI.WebControls.FormView.PerformDataBinding(IEnumerable data) +13
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.FormView.DataBind() +9
   TemplateProduct.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\ShopRemoteTool\templates\product.aspx.vb:114
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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