“/”应用程序中的服务器错误。

内存不足。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.OutOfMemoryException: 内存不足。

源错误:


行 255:                newG.Clear(Color.White);
行 256:                //画图
行 257:                newG.DrawImage(initImage, new System.Drawing.Rectangle(0, 0, newImage.Width, newImage.Height), new System.Drawing.Rectangle(0, 0, initImage.Width, initImage.Height), System.Drawing.GraphicsUnit.Pixel);
行 258:                //保存缩略图
行 259:                ImgeSaveByExt(savePath + sLastName, initImage, newImage);

源文件: e:\北京华辰\auctionWith.aspx.cs    行: 257

堆栈跟踪:


[OutOfMemoryException: 内存不足。]
   System.Drawing.Graphics.CheckErrorStatus(Int32 status) +166
   System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit) +730
   auctionWith.ZoomAuto(Stream stream, String imgPath, String savePath, Double targetWidth, Double targetHeight) in e:\北京华辰\auctionWith.aspx.cs:257
   auctionWith.show() in e:\北京华辰\auctionWith.aspx.cs:80
   auctionWith.Page_Load(Object sender, EventArgs e) in e:\北京华辰\auctionWith.aspx.cs:33
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +220
   System.Web.UI.Control.OnLoad(EventArgs e) +226
   System.Web.UI.Control.LoadRecursive() +202
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3999


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2106.0