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 ForumsForumForumMust specify valid information for parsing in the stringMust specify valid information for parsing in the string
Previous
 
Next
New Post
2/4/2010 5:39 AM
 

Hi, I've tried searching for this issue with no luck, but I'm getting the following issue when adding a forum to a group. I get the following error

ModuleControlSource: DesktopModules/Forum/Forum_ForumEdit.ascx
AssemblyVersion: 04.09.03
ActiveTabID: 26029
ActiveTabName: Forum
RawURL: /TravelTalk/Forum/tabid/26029/ctl/ForumEdit/mid/35555/groupid/17/language/en-GB/Default.aspx
AbsoluteURL: /Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f34b84d8-d77e-4921-b284-01fbfd62cb8c
InnerException: Must specify valid information for parsing in the string.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Enum.Parse
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Must specify valid information for parsing in the string. ---> System.ArgumentException: Must specify valid information for parsing in the string. at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) at DotNetNuke.Modules.Forum.ForumEdit.HandleForumBehavior() at DotNetNuke.Modules.Forum.ForumEdit.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:

 

If someone can point me in the right direction, I've run the following script to fix the issue of editing the forum module which was originally created by crispy and then edited by another person as the script had errors.

 

DECLARE @ModuleDefID int
SELECT @ModuleDefID = ModuleDefID FROM {databaseOwner}{objectQualifier}ModuleDefinitions WHERE FriendlyName = 'Forum'

IF @ModuleDefID > 0
BEGIN

DELETE FROM {databaseOwner}{objectQualifier}Lists WHERE DefinitionID = @ModuleDefId
END

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '0', 'NoneSpecified', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '1', 'Unanswered', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '2', 'Answered', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ThreadStatus', '3', 'Informative', 0, 0, 4, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('EmailFormat', '0', 'Text', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('EmailFormat', '1', 'HTML', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('GroupView', '0', 'AllExpanded', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('GroupView', '-1', 'AllCollapsed', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('GroupView', '1', 'AsLastViewed', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumMemberName', '0', 'Username', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumMemberName', '1', 'DisplayName', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '0', 'Rate0', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '1', 'Rate1', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '2', 'Rate2', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '3', 'Rate3', 0, 0, 4, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '4', 'Rate4', 0, 0, 5, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '5', 'Rate5', 0, 0, 6, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '6', 'Rate6', 0, 0, 7, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '7', 'Rate7', 0, 0, 8, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '8', 'Rate8', 0, 0, 9, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '9', 'Rate9', 0, 0, 10, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumThreadRate', '10', 'Rate10', 0, 0, 11, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '0', 'Today', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '3', 'PastThreeDays', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '7', 'PastWeek', 0, 0, 3, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '14', 'PastTwoWeek', 0, 0, 4, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '30', 'PastMonth', 0, 0, 5, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '92', 'PastThreeMonth', 0, 0, 6, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '365', 'PastYear', 0, 0, 7, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '-1', 'LastVisit', 0, 0, 8, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('TrackingDuration', '3650', 'AllDays', 0, 0, 9, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('DisplayPosterLocation', '0', 'None', 0, 0, 0, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('DisplayPosterLocation', '1', 'ToAdmin', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('DisplayPosterLocation', '2', 'ToAll', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '0', 'Normal', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '1', 'Notification', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Link', 0, 0, 3, @ModuleDefId)

GO


 

 

 

Thanks in advance

 
New Post
2/4/2010 9:59 AM
 

What version of the module are you using?


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
2/4/2010 10:03 AM
 

Hi Crispy,

I'm using 04.04.03, did your original script cater for the latest version 04.05.03?

Thanks

 
New Post
2/4/2010 10:22 AM
 

No, it was originally made for 443. I was asking because (it is good to know, but also) it might be worth an upgrade to fix many other issues. 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
2/4/2010 10:25 AM
 

Thanks for that, I guess we'll have to schedule that in now. Would the new version updates the SQL forum list table? Thanks

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumMust specify valid information for parsing in the stringMust specify valid information for parsing in the string


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