Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryCannot edit the GalleryCannot edit the Gallery
Previous
 
Next
New Post
11/9/2010 10:13 AM
 
Hi Everyone,

I am trying to add files to the Gallery but I keep getting the error below.

A critical error has occurred.
Value was either too large or too small for an Int16.

This happens when I try to do anything in the gallery i.e. Add file, Add album, maintenance or Edit this Album. I am running on DNN 5.5.1 and I installed Gallery 4.4.2 beta. I have the gallery 4.4.2 working on another instance. Any help will be appreciated. The full error and stack trace from the Event Viewer is below.

AssemblyVersion: 5.5.1
PortalID: 0
PortalName: GNR Demo 1
UserID: 1
UserName: gnrhost
ActiveTabID: 18090
ActiveTabName: test
RawURL: /test/tabid/18090/ctl/AlbumEdit/mid/38479/action/addfolder/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.gnrdemo1.com/Default.aspx?tabid=18090&error=Value+was+either+too+large+or+too+small+for+an+Int16.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a7c22f25-f1da-4bf2-a812-15b2478d1da7
InnerException: Value was either too large or too small for an Int16.
FileName
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Int16.Parse
StackTrace
Message: DotNetNuke.Services.Exceptions.PageLoadException: Value was either too large or too small for an Int16. ---> System.OverflowException: Value was either too large or too small for an Int16. at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at DotNetNuke.Modules.Gallery.WebControls.LookupControl.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:

Kind regards,

Richard

 
New Post
11/9/2010 1:05 PM
 
Although I was not able to reproduce this issue with DotNetNuke Gallery 4.03.02 Beta or 4.03.03 RC when running under DotNetNuke 5.05.01 I can see what is happening. The stack trace would indicate a failed Int16.Parse is occuring when the lookup control (for album owner) is being loaded. For some reason, in the legacy code which we inherited, the previous developers used an Int16.Parse rather than an Int32.Parse to obtain the numeric ModuleID from the QueryString "mid" parameter.

In your particular case, the "mid" parameter being passed is "38479" which unfortunately is too high a value to be represented by an Int16 value (16 bits with max value = 32767). In defense of the previous developers, I have never seen a ModuleID that high. Judging from the TabID of 18090, your's is an exceptionally large site.

I'll fix this in the 04.03.03 RC which will be submitted later tonight to the DotNetNuke release tracker for testing and approval as a "core" module included in future DotNetNuke packages. Thanks for finding this issue.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
11/9/2010 1:22 PM
 
I also thought to do a search for Int16 across all files of the Gallery solution and found 9 additional instances in code where the conversion from the "mid" QueryString parameter value to ModuleID would have also failed on your site. That explains why you were also having issues with the Maintenance control - different stack trace but same type of error than the one you posted.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
11/9/2010 2:12 PM
 
Richard -

I have just refreshed the install and source packages and source code repository for Gallery 04.03.03 RC2 in the downloads section of the project's home on CodePlex. If you have a chance, please try upgrading to 04.03.03 RC2 which includes the fixes for this issue. You may download the install package here: http://dnngallery.codeplex.com/releas...

Thanks!

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
11/11/2010 3:23 AM
 
Hi Bill, You are indeed right, it is a large site. I have downloaded and installed 4.3.3 RC2 and the gallery is now working. Thanks a million. Regards, Richard
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryCannot edit the GalleryCannot edit the Gallery


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out