Host Partnership
If you are looking for good DNN hosting, then PowerDNN is the best DNN host around!
Need a custom module?
 Should you have any questions about custom DNN modules or web projects, please let us know.
|
Support Forum
| Author |
Messages |
|
Jereme Downs Posts:4

 |
| 03/14/2008 11:15 AM |
|
When I try to upload a photo, I get an "out of memory" error. I have one 1 gallery with multiple albums, and all the albums already have some pictures. The server my site was hosted on recently crashed and they had to move me to another server, which at that point I had to apply the folder/file permissions again to my portal. Maybe there's something else I need to re-configure to resolve this?
Here's the event log:
ModuleId: 932 ModuleDefId: 185 FriendlyName: ModuleControlSource: DesktopModules/BizModules - UltraPhotoGallery/UltraPhotoGallery.ascx AssemblyVersion: 04.06.02 PortalID: 8 ActiveTabID: 354 ActiveTabName: Photos of the Inn RawURL: /PhotosoftheInn/tabid/354/mid/932/adminCtl/EditPhoto/Default.aspx UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: ab2f411d-d24a-43c2-baa9-a3c506bdfe0f InnerException: Out of memory. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: System.Drawing.Graphics.CheckErrorStatus StackTrace: Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Out of memory. ---> System.OutOfMemoryException: Out of memory. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData) at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback) at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr) at BizModules.UltraPhotoGallery.FileSystemController.ResizePicture(String strFilePath, Int32& intThumbnailWidth, Int32& intThumbnailHeight) at BizModules.UltraPhotoGallery.FileSystemController.AddPhoto(PhotoInfo& objPhotoInfo, AlbumInfo objAlbumInfo, HttpPostedFile postedFile) at BizModules.UltraPhotoGallery.PhotoController.AddPhoto(FileSystemController objFileSystemController, PhotoInfo objPhoto, HttpPostedFile photo, Boolean bolLinkOriginalFile) at BizModules.UltraPhotoGallery.ucEditPhoto.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace --- Source: Server Name: DNPWEB2-TX2 |
|
|
|
|
Pengtsen R Posts:11533

 |
| 03/14/2008 8:30 PM |
|
| how big is your photo? |
|
Pengtsen R http://www.bizmodules.net |
|
|
Jereme Downs Posts:4

 |
| 03/18/2008 7:43 AM |
|
1.2 megs, smaller than the previous images I've uploaded successfully. I have the album resize to 800x600 upon upload.
|
|
|
|
|
Pengtsen R Posts:11533

 |
| 03/19/2008 7:10 AM |
|
| I'm not sure why a 1.2mb picture cause a out of memory error, can you try it again? if possible, try another picture with similar size. |
|
Pengtsen R http://www.bizmodules.net |
|
|
Jereme Downs Posts:4

 |
| 03/19/2008 7:23 AM |
|
I've tried to upload different pictures, larger and smaller, and get the same error.
|
|
|
|
|
Pengtsen R Posts:11533

 |
| 03/19/2008 7:43 PM |
|
| can you give me a host account? if so, please send to rongers@hotmail.com |
|
Pengtsen R http://www.bizmodules.net |
|
|
Jereme Downs Posts:4

 |
| 03/20/2008 2:01 PM |
|
I resized the images all the way down to around 60k and was able to upload them successfully. I'm not sure how I was able to upload the 1+mb images before, but I don't anticipate ever having images of very high resolution anyway so I will just resize them before I upload instead.
Thanks for your help. Jereme
|
|
|
|
|
Pengtsen R Posts:11533

 |
| 03/20/2008 8:22 PM |
|
that's ok. actually I tried to upload 4mb pictures before and it works fine. |
|
Pengtsen R http://www.bizmodules.net |
|
|
jason dudley Posts:55

 |
| 08/11/2008 10:48 AM |
|
Could this error be due to a large resolution. I have some images that are around 612kb but the resolution is 3600 x 2400 I get the out of memory exception.
|
|
|
|
|
Pengtsen R Posts:11533

 |
| 08/11/2008 5:30 PM |
|
| yes, if your pictures have large resolution then you should reduce the files in zip file. |
|
Pengtsen R http://www.bizmodules.net |
|
|
graphicguru india Posts:2

 |
| 11/24/2008 8:30 AM |
|
I have the same issue, the files size are 25mb below and resolution is 300 to target user for downlaod hight quility images. when i targeted the folder which has 85 images in the gallery. getting message "out of memory" and unable to set it back. i increased the disk quta to 1000mb for enite gallery and user 100000kb and the same goes. the moduel should work for all the way. is there any setting to be done in dnn to resolve this issue. |
|
|
|
|
Pengtsen R Posts:11533

 |
| 11/24/2008 8:51 AM |
|
I guess .net is not able to handle 25MB pictures in default settings, you may need to change your server configuration to support such a big file. however, I suggest you to reduce the file size, you can create a small resolution version to be displayed in UMG, and link the original file as a "download". |
|
Pengtsen R http://www.bizmodules.net |
|
|
graphicguru india Posts:2

 |
| 11/26/2008 1:05 AM |
|
I am using UMG moduel -> Dynamic Gallery mode in this mode i am linking the folder which has the files in High-resolution and select the "link to original file" which the option we are giving to user. In Normal mode each of the low-resolution image is linked with high-resolution image, so the user click on the image then he able to download the linked image, where the user click on the "Download button" it provides the displaying image for download not the linked high-resolution image. |
|
|
|
|
Pengtsen R Posts:11533

 |
| 11/26/2008 3:51 AM |
|
| please note the "link original file" option is only available to Normal mode, when you upload a file UMG link the original file as a download, resize the uploaded file to target resolution and use it as the display version. |
|
Pengtsen R http://www.bizmodules.net |
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|