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 ForumsAnnouncementsAnnouncementsIActionable Implementation in Announcements moduleIActionable Implementation in Announcements module
Previous
 
Next
New Post
10/22/2011 10:39 AM
 
When I try to compile the Announcements module in a DNN 6 environment, VS2010 gives an error in the IActionable implementation: Overload resolution failed because no accessible 'Add' accepts this number of arguments.

The offending line reads:Actions.Add(GetNextActionID, "~", "")

I mentioned this in the forum "Using Modules and Extensions". Cathal Connolly replied with the advice to log it in Gemini, as this would suggest the binary compatibility was broken, which I did.

However, my question on what this code line was supposed to do remains unanswered. Searching through wikis and other postings did not provide any clues. Removing this line does not seem to have any negative effects, at first sight.

What is this line of code supposed to do?

I used the Announcements module as the basis for a development of my own, and this encounters of course the same error when I try to compile it with DNN 6. I am wondering if I could safely remove this line but I have no idea, since I do not know its purpose.

____________________________________
The one-eyed in the land of the blind.
 
New Post
10/22/2011 9:15 PM
 
Marc,

The reason that this line worked prior to DNN 6.0 was that the ModuleActionCollection.Add method included one overload in which all parameters except the first three (ID, Title and CommandName) were marked as Optional. Apparently this particular overload was dropped during the conversion to C# in DNN 6.00.00 since optional metod parameters were not permitted in C# versions prior to 4.0 (VS 2010).

As for Announcements using . . .

Actions.Add(GetNextActionID, "~", "")

I looked an install of Announcments v 4.03.00 installed in both a DNN 5.5.1 site and a DNN 6.00.02 site to see the result of this line - apparently nothing as no actions menu item is rendered with a Title of "~" and an empty CommandName. I recall that at one time the core navigation code rendered an action having a tilde ("~") in the Title parameter as a break or separator line in the action menu. Not sure without looking at the core source code if that is still the case.

I don't see any problem with dropping this line from your custom module code.

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
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsIActionable Implementation in Announcements moduleIActionable Implementation in Announcements module


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