DDN7 install for module development

These are my notes
(found first time through they should be followed very closely)

Resources for setting up DNN7 with module development

DNN setup

  • copy DNN Community Edition files to C:/websites/dnndev.me (dir used by template)
    • set folder security permissions
      • add IIS AppPool\DefaultAppPool with modify rights
      • add Network Service with modify rights
        (not clear this is needed unless on a network)
  • IIS Manager: ensure Application Pools, DefaultAppPool is running .NET Framework v4.0
  • IIS Manager add website
    • Site name: dnndev.me
    • Application pool: DefaultAppPool (check that .Net4) (could also be dnndev.me)
    • Host name: www.dnndev.me
    • Physical path:  C:/websites/dnndev.me
  • IIS Manager add bindings dnndev.me and dnndev
    (this is in addition to www.dnndev.me)
  • Web Browser: www.dnndev.me with bring up site install (lengthy delay while app compiles)
    • Do use username Host as a SuperUser Account
    • Add second SuperUser Account (under Host)
    • Add user account and give it admin rights (under Admin\User Accounts)
    • add or change main page logo pic to identify this installation

Visual Studio prep for building DNN module XXX

  • Install templates
  • Run VS as admin
  • VS\File\New Project
    • select Templates\Visual Basic\DotNetNuke: “DotNetNuke 7 VB.Net DAL2 Compiled Module”
      • Name: XXX
      • Location:  C:\websites\dnndev.me\DesktopModules\
      • if available “Create new solution”
      • uncheck “Create directory for solution”
      • uncheck “Add to source control”
  • XXX\Properties settings
    • Compile: Option strict off
  • Build project under Debug and again under Release
    (should compile without errors, one warning)
  • XXX\Properties settings
    • Compile:  Option strict on
    • Application Assembly Information:
      change * in Assembly version and File version to 00
  • Correct code strict errors
  • IIS Manager: Sites\dnndev.me\View Virtual Directories
    • remove any XXX virtual directories (could be none there)
  • Web Browser open site, login as host, add new page, install/add XXX module
  • VS desktop link with Shortcut properties
    • Target:  “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe”
    • Start in: “C:\websites\dnndev.me\DesktopModules\XXX”
    • Advanced Run as administrator

Module Coding Notes

  • XXX\Providers\DataProviders\SqlDataProvider
    • 00.00.01.sqldataprovider and UnInstall.sqldataprovider
      hold code to sql tables install and uninstall
  • XXX\Components
    • Item.vb:  data class represents table row
    • ItemController.vb:  BBL to data class with CRUD functions
  • XXX\XXX.dnn is what DNN uses to install the module
  • Template references DotNetNuke.dll & DotNetNuke.WebUtility.dll  found in       C:\websites\dnndev.me\bin
  • I had some errors in View.ascx and Edit.ascx in not finding DotNetNuke.Common and others
    • resolved by ensuring Imports DotNetNuke and removing DotNetNuke prefix
  • I had database connection error. Resolved in IIS Manager, site advanced settings Application Pool needed to be set to DefaultAppPool
  • Visual Studio sometimes creates a virtual directory which will through SQL for a loop showing up as DNN throwing an error. Fix is removing any virtual directories in IIS Manager: Sites\dnndev.me\View Virtual Directories
  • Several times I accidentally blew away my developed module code and had to rely on some backup. This can easily happen by reinstalling DNN or removing the module in DNN as the development module is under the website directory.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s