Learn More





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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 8.0 doesn't support @Html.Action in MVC modules?DNN 8.0 doesn't support @Html.Action in MVC modules?
New Post
1/16/2016 1:52 AM

I am getting the error below after creating a test MVC module and using @Html.Action("viewname",Model) in my view. Looking at the DnnHtmlHelper.cs files, I don't see an 'Action' method defined. Does this mean we can't use @Html.Action in any views?

DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper<System.Collections.Generic.IEnumerable<Dnn.Modules.testMVC.Models.Item>>' does not contain a definition for 'Action' and the best extension method overload 'System.Web.Mvc.Html.ChildActionExtensions.Action(System.Web.Mvc.HtmlHelper, string, object)' has some invalid arguments 



New Post
1/16/2016 9:31 AM

I had this error as well when I tested 8.0 Beta 1 and then RC on my development server.  I went into one of the skins and removed the registration of the DNNACTIONS and ACTIONBUTTONS and any lines that called it or the ACTIONBUTTONS.  The pages now load without error and the action icons still show up.

However, this means that every single legacy skin that calls this will throw and error.  I've notified 2 skin developers that I use and neither were aware of this.

I'm amazed that this is happening.  Unless there is a simple fix, everyone will have to 'fix' any skins that call this and that could be thousand of skins running on who knows how many sites.

I hope everyone has a test installation prior to applying this to their production site.  They may be very busy fixing sites.

New Post
1/16/2016 6:28 PM
I can't think of the last time I built a skin/container that had the Actions buttons in them..

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee Software Solutions DotNetNuke Module Development, Upgrades and consulting. a chat room for DotNetNuke discussions
New Post
1/18/2016 9:34 AM


  We have been very open in blogs and webinars and community hangouts for months that we were removing support for many legacy components.  We removed support for Actions and ActionButtons in August of 2015, which means they weren't supported in CTP4, 5, 6 or 7, Beta 1 or the RC. 

In order to move DNN forward, we made the decision to remove many old components which are no longer needed.  We did this both to improve performance and also to trim our codebase.  The reality is that features like Actions and ActionButtons haven't played any part in DNN module action menu rendering since DNN 6 was released in 2011.  When you look at those particular controls, you find that they had dependencies on Solpart menu which hasn't been maintained or supported since 2008.

Joe Brinkman
DNN Corp.
New Post
1/18/2016 9:43 AM


Currently, the html.action feature is not supported, although I don't see any reason why it couldn't be in future releases.  For now I would recommend using RenderPartial and working around the limitation.

Joe Brinkman
DNN Corp.
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 8.0 doesn't support @Html.Action in MVC modules?DNN 8.0 doesn't support @Html.Action in MVC modules?

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?