DotNetNuke (DNN) Development Project Templates

Free

This Visual Studio Package contains Project Templates to aid in your DotNetNuke Extension development.

(8) Review
Visual Studio
2015
Download (30,923)
3/10/2016
7.1
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (8)
Q and A (20)
Sign in to write a review
Sort by:

by hbuchel | April 13 2016

I learned more from these templates than I have from any tutorial out there. Thank you.

by Bob Boberman | March 29 2016

Great Concept, These templates are really nice, But, The MVC version fails with ASP._Page_DesktopModules_MVC does not inherit from System.Web.WebPages.StartPage

And the author does not respond anymore on the q and a.

Chris-Hammond April 06 2016
| Edit |
Delete

Bob, I am sorry you're having problems. As for "responding" to the Q&A, I don't get the notifications for the Q&A and often times forget to check it as I provide most of my FREE support via www.dnnchat.com

by NickGoodrow | February 06 2016

Thank you so much! Work like a charm

by Chan Kok hong | June 12 2015

Thanks for the template!!

by ClubReady Chris | June 23 2014

by Luis Lepe | August 21 2013

This is THE template to use if you're serious about programming in DNN.

by Michael Clausing | March 05 2013

by hismightiness | September 01 2012

Great job, Chris!

Chris-Hammond September 03 2012
| Edit |
Delete

Thanks

Sign in to start a discussion


  • IIFE bug in SPA template
    2 Posts | Last post Sun 2:07 AM
    • Thanks for your work Chris.
      I recently found an issue in the SPA module template within the Settings.html file. Specifically, the JS script embedded in that page, which initializes the Quick Settings save/cancel button click events, is being wrapped in an IIFE causing the click handlers not to be wired correctly. (At least that's my diagnosis). The correction I made was to change the script in Settings.html to align with how those functions are being kicked off in View.html and Edit.html. Namely, making this function fire when the complete DOM has loaded vs. when the parser encounters the script. The group over at GitHub DNNSoftware, have done the same:
      
      https://github.com/dnnsoftware/DNN.Templates/blob/master/src/DnnSpaModule/Settings.html
    • Thanks Tim, I'll get this updated in the next release 
  • What is the difference between MVC & SPA?
    2 Posts | Last post May 11, 2016
    • Chris, Great templates !!!
      
      However, I was wondering what is the difference between MVC & SPA approach? (I noticed, QuickSettings is in SPA but not in MVC) 
      
      Which one should be used? when?
      
      What the pros & cons of each?
      
      Thanks
    • Personally I don't find much value in the SPA approach, unless you are truly building a SPA app. Even then, most other modules can be used without this "template". 
      
      MVC is great if you want to do that approach to your development, it takes some getting used to from webforms, but is obviously the way "most" .net devs do things these days. Nice to have in DNN finally. That being said, you can't use the Rich Text editor control that DNN provides in this approach yet, so you have to go elsewhere for your editor.
  • Error: Attempt by method 'Christoc.Modules.TaskList.Controllers.ItemController.Index()' to access method 'System.Web.Mvc.Controller.View(System.Object)' failed
    8 Posts | Last post April 06, 2016
    • I just followed the instructions for Debugging MVC on your YouTube channel (www.youtube.com/watch?v=oEtG) closely (I posted this question there too, btw). 
      
      However, when I add the TaskList module onto a test page, the following two error messages (displayed in separate panes) are displayed. Any ideas? 
      
      Error: TaskList is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Attempt by method 'Christoc.Modules.TaskList.Controllers.ItemController.Index()' to access method 'System.Web.Mvc.Controller.View(System.Object)' failed. ---> System.MethodAccessException: Attempt by method 'Christoc.Modules.TaskList.Controllers.ItemController.Index()' to access method 'System.Web.Mvc.Controller.View(System.Object)' failed. at Christoc.Modules.TaskList.Controllers.ItemController.Index() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at DotNetNuke.Web.Mvc.Framework.Modules.ModuleApplication.ExecuteRequest(ModuleRequestContext context) at DotNetNuke.Web.Mvc.MvcHostControl.OnInit(EventArgs e) --- End of inner exception stack trace --- 
      
      An error has occurred. DotNetNuke.Se
    • The container error you posted is likely related to your Skin/Container, was this a new install, or an upgraded install? What Skin/Container are you using?
      
      As for the error on accessing the Index method, I don't know what the cause of that is. 
    • Thanks for the quick response Chris! 
      
      It's a fresh install of DNN 8, all default settings, including the default template. I didn't change anything on the VS template either. 
      
      I'm wondering if I missed something on setup/preparation to implement the template's TaskList logic. If you have any suggestions (what somebody might overlook when using the default templates), please let me know.
      
      In the meantime, I'll simplify the Index Action and View to just do a "Hello World" to ensure that the module has been created correctly. 
    • I painstakingly followed the steps in your video again. Afterward, I received the following error: 
      
      Error: TaskList is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: c:\Users\MyUserName\documents\my web sites\dnn8_mvc\DesktopModules\MVC\TaskList\Views\Item\Index.cshtml(1): error CS0103: The name 'model' does not exist in the current context ---> System.Web.HttpCompileException: c:\Users\MyUserName\documents\my web sites\dnn8_mvc\DesktopModules\MVC\TaskList\Views\Item\Index.cshtml(1): error CS0103: The name 'model' does not exist in the current context at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext context, TextWriter writer) at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult moduleResult) at DotNetNuke.Web.Mvc.MvcHostControl.OnLoad(EventArgs e) --- End of inner exception stack trace ---
      
      So, taking the "let's just try a Hello World" approach, I did the following: ...
    • ... did the following:
      * Deleted \Views\Item\Index.cshtml
      * Commented out Index action in the ItemController. Replaced with this:
          [ModuleAction(ControlKey = "Edit", TitleKey = "AddItem")]
          public ActionResult Index()
          {
            return View(); //For simple view that just displays "Hello World"
      * Right-clicked the action's text, then clicked "Add View" to create new default Index view.
      
      Rebuilt the solution in VS, then in DNN, removed the module, then re-installed it. 
      
      At that point I received an error generated by the @model reference. It said that it couldn't access System.Web.Mvc component (don't have the exact error message handy).
      
      So.... I'm wondering if I'm encountering an error that you might not've on your dev machine. FWIW, I'm running Win 7, using IIS 7.5, VS 2015. 
      
      Perhaps you could follow the tutorial steps on a fresh HyperV machine? 
    • I've got the details now..
      
      This is the View
      --------
      @{
          ViewBag.Title = "Index";
      }
      <h2>Index</h2>
      --------
      Error: TaskList is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: c:\Users\MyUserName\documents\my web sites\dnn8_mvc\DesktopModules\MVC\TaskList\Views\Item\Index.cshtml(3): error CS0103: The name 'ViewBag' does not exist in the current context ---> System.Web.HttpCompileException: c:\Users\MyUserName\documents\my web sites\dnn8_mvc\DesktopModules\MVC\TaskList\Views\Item\Index.cshtml(3): error CS0103: The name 'ViewBag' does not exist in the current context at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext context, TextWriter writer) at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult moduleResult) at DotNetNuke.Web.Mvc.MvcHostControl.OnLoad(EventArgs e) --- End of inner exception stack trace --- 
    • Having the same problem. Seems everyone is having the same problem. Your MVC template fails on execution. Please install on a fresh VM and try it. Otherwise let us know you've abandoned the effort so we can move on. It is a great concept. Really wish it worked. 
    • I'm sorry you guys are still experiencing problems. I just tested the MVC module yet again and everything works exactly as expected.
      
      One thing I noticed, you have your DNN site in your My Documents folder, I would suggest you move it to c:\websites\dnndev.me\ as instructed in my tutorials, I've never had any luck running DNN out of the "users" folder (sub folders) as it causes all sorts of IIS permission issues.
      
      Here's a video of a fresh Module being created from the MVC template, compiled, installed, and functioning without any issues.
      
      https://www.youtube.com/watch?v=shM2iKeRgKE&feature=youtu.be
  • The located assembly's manifest definition does not match the assembly reference.
    5 Posts | Last post March 09, 2016
    • CJV
      I have tried several different times and several different ways to install the Mvc templates but keep having the same issue.  Everything works fine release building, installing as a module, but when I try to insert the module into a page I get the following error.
      
      "DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)".
      
      I have tried upgrading Mvc (using NuGet) and I have also tried NOT upgrading Mvc.  I am using the latest version 6.0 from the Visual Studio Gallery.  Although I did see a note on GitHub about 6.1 being the most recent Mvc deployment, I could not find a 6.1 version anywhere.
      
    • Did you create the module under the mvc folder? I mean DnnSite/DesktopModules/Mvc.
      
      Did you fix the project properties accordingly and also as mentioned by chris in his doc?
    • Silly question, but are you using DNN8?
    • same for me.
      Spa module works prefeclty but when I try to build DNN 8 C# DAL Module I get same exceptioon. any work araound 
    • Admir, what Target Framework are you using?
  • Toolbox Controls will not add
    3 Posts | Last post March 09, 2016
    • Hi,
      
      I am using VS 2015 and installed your module templates. I created a C#.Net project and opened the view.ascx.  When I try and drag and drop any of the standard toolbox controls onto the design screen, they cannot be added.  If I create a standard web forms app, it all works fine.
      
      Any ideas as to why this would occur?
      
      Thanks,
      
      Tom
    • Exactly the same question here. Is this possible to do?
      
    • I haven't tried this, I have never been a drag and drop guy myself, so I haven't focused on it.
  • Edit and Continue when Debugging
    2 Posts | Last post March 09, 2016
    • Thans Chris for your unvaluable and unpaid work.
      
      Is it possible to enable Edit and Continue When Debugging ??. I have searched for lots of sites but I did not get any answer. Is it a Template for doing So ? I mean a WAP templete assuming that with WAP you can achieve so.
       
      Could you please guide me in this goal?
      
      Many thanks in advance.
    • Not with the approach to module development that my templates use. WAP, as far as I know, doesn't support edit and continue.
  • MVC VB module Templates
    3 Posts | Last post March 02, 2016
    • Are you planing to release MVC templates in VB for DNN8?
      Thanks 
    • At this time I don't have any intentions of doing any more VB.NET development on the templates, sorry.
    • As supposed. So we start using the C# template. Thanks Chris for good job you are doing.
  • DotNetNuke
    2 Posts | Last post February 29, 2016
    • I am back to DNN after 8 years.I code some module 8 years ago.
      I installed DNN v8.o , VS 2015 - SQL Express in windows server 2008 r2.
      Compile downloaded HammerFlex to  /portals/_default/skins as DnnTheme1 
      got error 
          Modules
          Pages
          Users
      
          Edit Page
      
      Could Not Load Theme: /Portals/_default/skins/dnntheme1/Edit.ascx, Error: Could not load type 'Christoc.Modules.DNNTheme1.Edit'.
      any help  olease ?
      I intend to aquire easyDNNSolutions Galore+Ozone theme , only theme.Is it better to buy also the module ?What is your opinion around this intention?
      
    • Check to see if there is a "DNNTheme1.dll" in the BIN folder of the website. Sound like it is missing.
  • Minor - Intelli-sense detection
    3 Posts | Last post February 25, 2016
    • Is there a way to stop getting all the intelli-sense errors we get form the @Dnn razor helper ? 
      
      Thanks,
      Nick
    • Nick,
      I will be working on that soon, I get them too, I just ignore them for now. I know not ideal, but it works :D 
    • Nick, check out the latest release, I made some changes to the MVC template that seemed to help my intellisense issues. 
  • VS 2015?
    6 Posts | Last post August 02, 2015
    • Will there be an update for Visual Studio 2015 soon?  Would love to use these.
    • I will be doing some VS2015 work once the full release is out, I believe it is still in RC at this point?
      
      Chris
      
    • Just thought I would add my 2 cents.  I just finished installing VS2015 Community.  It's not in RC status anymore.
      
      Just something for you to do in all your spare time!!!
      
    • I hope to work on it this weekend
    • I have a BETA for the VS2015 support up on Codeplex. If testing goes well I'll work to get it in the Gallery in a couple of days http://christoctemplate.codeplex.com/releases/view/616568 
    • V5, for VS2015 is released!
1 - 10 of 20 Items