Error uploading image

  •  06-09-2006, 1:16 PM

    Error uploading image

    I get this error when attempting to upload an image:
     
    Error Type: System.ArgumentNullException
    Error Message: Value cannot be null.
    Parameter name: source
     
    The configuration I have for the editor is:
    <security name="AutoResizeUploadedImages">true</security>
    <security name="MaxImageWidth">276</security>
    <security name="MaxImageHeight">207</security>
    <security name="MaxImageSize">200</security>
     
    The image that I get the error on is 183KB and 640 X 480.  If I change the max width and height to something bigger than 640
    X 480, there is no error.  So, it looks like an auto-resize issue.
     
    What's strange is that I am able to sucessfully upload an image that is 1.14MB and 2856 X 2142.  After the upload and auto resize, this image is 17.7KB and 276 X 207 when saved to my server. 
     
    I have a trial version, but our users have decided this is the product they want to purchase.  We are going through our formal product selection process now.
     
    The stack trace for the error is:
     
    at System.Runtime.InteropServices.Marshal.CopyBytesToManaged(Int32 source, Byte[] destination, Int32 startIndex, Int32 length)
    at System.Drawing.Imaging.PropertyItemInternal.ConvertFromMemory(IntPtr propdata, Int32 count)
    at System.Drawing.Image.get_PropertyItems()
    at CuteEditor.Dialogs.InsertGalleryFrame.a(Object A_0, EventArgs A_1)
    at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
    at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    at System.Web.UI.Page.ProcessRequestMain()
     
    Any ideas?
View Complete Thread