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

GDI+ 中发生一般性错误。

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

异常详细信息: System.Runtime.InteropServices.ExternalException: GDI+ 中发生一般性错误。

源错误:


行 460:            else if (oldImage.RawFormat.Guid == ImageFormat.Jpeg.Guid)
行 461:            {
行 462:                newImage.Save(savePath, ImageFormat.Jpeg);
行 463:                return "true";
行 464:            }

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

堆栈跟踪:


[ExternalException (0x80004005): GDI+ 中发生一般性错误。]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +843
   System.Drawing.Image.Save(String filename, ImageFormat format) +215
   auctionWith.ImgeSaveByExt(String savePath, Image oldImage, Image newImage) in e:\北京华辰\auctionWith.aspx.cs:462
   auctionWith.ZoomAuto(Stream stream, String imgPath, String savePath, Double targetWidth, Double targetHeight) in e:\北京华辰\auctionWith.aspx.cs:259
   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