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 12:         string file = Request.QueryString["file"].ToString().Replace('|', '/');
Line 13: 
Line 14:         System.Drawing.Image sourceImage = System.Drawing.Image.FromFile(Server.MapPath(file));
Line 15:         sHeight = sourceImage.Height;
Line 16:         sWidth = sourceImage.Width;

Source File: e:\websites\tiaanostore.in\MakeThumbnail.aspx.cs    Line: 14

Stack Trace:


[OutOfMemoryException: Out of memory.]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +643885
   MakeThumbnail.Page_Load(Object sender, EventArgs e) in e:\websites\tiaanostore.in\MakeThumbnail.aspx.cs:14
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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