Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've just instealled image cropper on a 220.127.116.11 installation and everything was working fine but then I started getting unhandled errors when I save an image as below:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 23/09/2010 16:11:02
Event time (UTC): 23/09/2010 15:11:02
Event ID: cbdb0bbc71cf40a4a24b91bb7eb620a5
Event sequence: 333
Event occurrence: 1
Event detail code: 0
Application domain: /LM/W3SVC/1992667672/ROOT-25-129297257445761337
Trust level: Full
Application Virtual Path: /
Application Path: D:\home\Default\----REmOVEd----.co.uk\htdocs\
Machine name: DSVR009865
Process ID: 6888
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception type: ExternalException
Exception message: A generic error occurred in GDI+.
Request URL: ----REmOVEd----/editMedia.aspx?id=1148
Request path: /umbraco/editMedia.aspx
User host address: ----REmOVEd----
Is authenticated: False
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread ID: 23
Is impersonating: False
Stack trace: at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
at Kenny.Umbraco.DataTypes.ImageCropper.ImageTransform.saveJpeg(String path, Bitmap img, Int64 quality)
at Kenny.Umbraco.DataTypes.ImageCropper.ImageTransform.Execute(String sourceFile, String name, Int32 cropX, Int32 cropY, Int32 cropWidth, Int32 cropHeight, Int32 sizeWidth, Int32 sizeHeight, Int64 quality)
at Kenny.Umbraco.DataTypes.ImageCropper.ImageInfo.GenerateThumbnails(SaveData saveData, Config config)
at umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\controls\ContentControl.cs:line 158
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.ImageButton.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(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
did you ever work this out ? having a similar problem moving to a deployment server :(
Same problem with 4.9... :-(
in the end this turned out to be for me a permissions error
what permissions where you missing john ?
It looks like I'm running into the same problem here:http://our.umbraco.org/forum/templating/templates-and-document-types/39457-Error-when-generating-crops-with-ImageCropper
The "funny" thing is it only happens on my live site. :( So I'm wondering if it permission related.
Both sites runs with Network Service (Full Control)
We are having the same experience but its only sometimes that it throws the GDI+ error.
I dont its permission based tbh, we have all the right permissions on our solutions but its still throwing this error at random, and the wierd thing is it actually saves the crop.
Apparently it only appears on images uploadet before I made the changes to the data type.
If I choose to upload a new Image, the is no problem saving and generating thumbnails.
We had this problem togehter with ImageGen. It somehow access the file without releasing it.
It worked for us without the ImageGen.
well try to do it a TON of times, ive done it up to 10-20 times in a row on a test scenario without any issues then suddenly try another image and bang GDI+ bug. :/
Oh you might be right Tobias, it could be caused by imagegen keeping lock on the image, gotta pinch Doug to hear if this could occur.
But if it was ImageGen, wouldn't it be solved after a IISRESET ?
It should imo
The issue for me was after deploying from the QA environment to the Production environment the media folder had a bunch of 'Cached' folders nested in each media directory. Removing these cache folders did the trick for me.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted