Server Error in '/' Application.
Out of memory.
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.OutOfMemoryException: Out of memory.
Source Error:
Line 95: string imgPath = Server.MapPath(aspaths + spath); Line 96: postedFile.SaveAs(imgPath); Line 97: string[] imgSize = imgHelper.WidthHeight(imgPath); Line 98: int imgWidth = Convert.ToInt32(imgSize[0]); Line 99: int imgHeight = Convert.ToInt32(imgSize[1]);
Source File: d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\blog\user\album\album_add_ok.aspx.cs Line: 97
Stack Trace:
[OutOfMemoryException: Out of memory.] System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +177 System.Drawing.Image.FromFile(String filename) +7 NuoHa.Tool.imgHelper.WidthHeight(String imgPath) +52 blog_user_album_album_add_ok.Page_Load(Object sender, EventArgs e) in d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\blog\user\album\album_add_ok.aspx.cs:97 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +46 System.Web.UI.Control.OnLoad(EventArgs e) +65 System.Web.UI.Control.LoadRecursive() +98 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3493
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272