--- NOT SAVED ---

A generic error occurred in GDI+.

at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at image.saveImage(Int32 websiteid, String url) in c:\inetpub\wwwroot\BlaBla4UHomepage\Index\image.aspx.cs:line 217

 


Parameter is not valid.

Server Error in '/Index' Application.

Parameter is not valid.

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.ArgumentException: Parameter is not valid.

Source Error:


Line 40: 
Line 41: 
Line 42:             using (Bitmap image = new Bitmap(fullPath))
Line 43:             {
Line 44:                 using (MemoryStream ms = new MemoryStream())

Source File: c:\inetpub\wwwroot\BlaBla4UHomepage\Index\image.aspx.cs    Line: 42

Stack Trace:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(String filename) +639196
   image.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\BlaBla4UHomepage\Index\image.aspx.cs:42
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


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