System.ArgumentException: MostRecentPostDateDesc

rated by 0 users
This post has 7 Replies | 3 Followers

Top 75 Contributor
Male
Posts 276
Points 4,210
SuperJMN Posted: Wed, Feb 28 2007 8:35 PM
System.ArgumentException: Cannot find the requested value: MostRecentPostDateDesc

This happens when I click on a picture or a gallery BUT ONLY WHEN THE GALLERY USES THE PHOTOSTACK SKIN!!

Any solution?

I updated the database from CS 2.1 SP1 using the required SQL commands batch file. The rest goes fine.

José Manuel Nieto
Translator of the Spanish Language Pack for Community Server 2008
Developer of CS Writer

Top 25 Contributor
Posts 948
Points 14,515
CS Developers

I believe that something did not get overwrote correctly when you were doing your update.  Are you able to select different gallery themes from the control panel since the upgrade?

I do not see this value getting used anywhere in 2007, so I believe that something did not get overwrote when you were doing the upgrade. 

Please let me know if you can select a photo gallery theme from the control panel with the default upgrade.

Thanks, 

Wyatt Preul
Wyatt - The Geek Cowboy

  • | Post Points: 20
Top 75 Contributor
Male
Posts 276
Points 4,210
Thanks! I checked it and you're right: when I try to select other theme for the gallery it throws the exception too.

It only appears with one gallery and I think it's because it uses the PhotoStack skin/theme.

José Manuel Nieto
Translator of the Spanish Language Pack for Community Server 2008
Developer of CS Writer

  • | Post Points: 5
Top 75 Contributor
Male
Posts 276
Points 4,210
SuperJMN replied on Fri, Mar 23 2007 8:13 AM

It also happens with Beta 2!!

I've found out that the problem occurs when you have a gallery that uses PhotoStack and then you update to CS 2007 (Beta 1 AND BETA 2).

The excepcion shows as follows:

[ArgumentException: Requested value 'MostRecentPostDateDesc' was not found.]
   System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) +1244
   CommunityServer.Components.Section.get_CategorySortBy() +104
   CommunityServer.ControlPanel.Controls.SkinOptionsLayoutControl.Page_Load(Object sender, EventArgs e) +509
   System.Web.UI.Control.OnLoad(EventArgs e) +127
   System.Web.UI.Control.LoadRecursive() +101
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2588

That is thrown when you try to see the gallery and when you yo to Control Panel->My photos->Configuration->Change how my gallery looks (sorry, the last item might be different since I've my CS tranlasted to Spanish).

I wonder how can I solve this problem.

Thanks a lot!

José Manuel Nieto
Translator of the Spanish Language Pack for Community Server 2008
Developer of CS Writer

Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Fri, Mar 23 2007 8:46 AM

I don't think your beta installations have been successful -- beta-1 AND beta-2 do not support gallery themes. 

The photostack gallery theme does not exist in CS2007 (beta-1 OR beta-2).

Ben Tiedt's Blog

  • | Post Points: 20
Top 75 Contributor
Male
Posts 276
Points 4,210
SuperJMN replied on Fri, Mar 23 2007 4:51 PM

Ben, you're right. It doesn't exist.

The problem is not that I want to change the Theme. The real problem is that if:

  1. You have some galleries that use PhotoStack in CS 2.1 and others that do not.
  2. You do the update to CS 2007 B2
  3. The result: the galleries that used PhotoStack throw that exception when clicked but NOT THE ONES THAT DID NOT MAKE USE OF PHOTOSTACK.

The only way to avoid this is to set all galleries to the default theme before updating. But I'm too lazy now to do a re-update (one more time) :S  I would like to fix this although it is necessary to peek into the database.

 

Thanks.

José Manuel Nieto
Translator of the Spanish Language Pack for Community Server 2008
Developer of CS Writer

Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Fri, Mar 23 2007 9:07 PM

This issue doesn't appear to be theme related, but, instead appears to be related to a change made in the PostCategorySortBy enumeration used to order albums within a gallery.

If the default value was ever overriden (set in the control panel) in CS2.1 (or earlier), it will probably be set to a now invalid value. 

I've logged this issue as #5380.

Ben Tiedt's Blog

  • | Post Points: 20
Top 25 Contributor
Posts 948
Points 14,515
CS Developers

I have checked in a fix for this issue and so it will be included in the next build of Community Server 2007.

                                                                

Thank you for finding this issue and reporting it.

                

Thanks,

                   

Wyatt Preul
Wyatt - The Geek Cowboy

  • | Post Points: 5
Page 1 of 1 (8 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com