Server Error in '/' Application.

Value was either too large or too small for an Int32.

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 an Int32.

Source Error:


Line 66: 								{
Line 67: 									intHeight = 480;
Line 68: 									intWidth = Convert.ToInt32(intHeight * fImageRatio);
Line 69: 								}
Line 70: 								intTop = (600 - intHeight) / 2; 

Source File: c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\viewscrapbookinframe.aspx    Line: 68

Stack Trace:


[OverflowException: Value was either too large or too small for an Int32.]
   System.Convert.ToInt32(Double value) +14705451
   ASP.viewscrapbookinframe_aspx.__RenderForm2(HtmlTextWriter __w, Control parameterContainer) in c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\viewscrapbookinframe.aspx:68
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11834213
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +50
   ASP.viewscrapbookinframe_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\commonpagecolors.inc:27
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   ScrapbookFlairWeb.viewscrapbookinframe.Render(HtmlTextWriter writer) +48
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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