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 77: 									{
Line 78: 										intHeight = 434;
Line 79: 										intWidth = Convert.ToInt32(intHeight * fImageRatio);
Line 80: 									}
Line 81: 									intTop = (600 - intHeight) / 2; 

Source File: c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\viewscrapbookinawardframe.aspx    Line: 79

Stack Trace:


[OverflowException: Value was either too large or too small for an Int32.]
   System.Convert.ToInt32(Double value) +14705451
   ASP.viewscrapbookinawardframe_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\viewscrapbookinawardframe.aspx:79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   ScrapbookFlairWeb.viewscrapbookinawardframe.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