Download presentation
Presentation is loading. Please wait.
Published byWilfrid Bradley Modified over 8 years ago
1
DotNetNuke v4 – Intro to In Depth Tool Shed & Tackle Box
2
Today’s Presenters Russ Fustino – Microsoft DCC rfustino@microsoft.com Stan Schultes – Microsoft MVP (VB) stan@vbnetexpert.com Joe Brinkman – Microsoft MVP (ASP.NET) joe.brinkman@tag-software.net Tracy Wittenkeller – Principal, T-WORX tracyw@t-worx.com
3
Questions and Answers Submit text questions using the “Ask” button. Don’t forget to fill out the survey. For upcoming and previously live webcasts: www.microsoft.com/webcasts www.microsoft.com/webcasts Got webcast content ideas? Contact us at: http://go.microsoft.com/fwlink/?LinkId=41781 http://go.microsoft.com/fwlink/?LinkId=41781 Today's webcast was presented using Microsoft Office Live Meeting. Get a free 14- day trial by visiting: http://www.microsoft.com/presentlive Today's webcast was presented using Microsoft Office Live Meeting. Get a free 14- day trial by visiting: http://www.microsoft.com/presentlive http://www.microsoft.com/presentlive
4
What We Will Cover Running DNN v4 with Visual Web Developer DNN v4 Overview and Walkthrough Installation and Deployment <break> DNN v4 on ASP.NET v2 Dissecting the Provider Pattern HTML-Based Skinning Level 200
5
Steps to setup DotNetNuke using VWD and SQL Express Download Visual Web Developer and SQL Express http://msdn.microsoft.com/express http://msdn.microsoft.com/expresshttp://msdn.microsoft.com/express Download and run startup kit from www.dotnetnuke.com www.dotnetnuke.com From VWD - File Open new web site – pick DNN Template Add a database (SQL Express) to the Data Folder Rename release.config to web.config Run default.aspx
6
Demonstration # 1 Running DNN v4 with Visual Web Developer (VWD)
7
DNN v4.0 - Overview & Walkthru Stan Schultes DNN Today – v4.0 / v3.2 DNN Technical Overview Demo – DNN Walkthrough Installation Overview Portal Deployment
8
DNN Today – v4.0 and v3.2 V4.0 and V3.2 are functionally equivalent Sources are slightly different Projects will track together (near term) BuildRuntimeDB DNN v4.0 VS 2005 only ASP.NET v2.0 SQL 2005 SQL 2000 DNN v3.2 VS 2003 only ASP.NET v1.1 ASP.NET v2.0 SQL 2000
9
Technical Overview Framework application, modular construction Core provides plumbing Provider model allows pluggable services Extend with custom modules Portals / Pages / Modules Portals = websites (unique URLs), sub-portals Pages = portal organizational units Modules = information containers All are individually skinnable Membership – Roles & Users Online configuration & content management by role Host vs. Portal Admin roles
10
Demonstration # 2 DNN v4 Walkthrough
11
Package Distribution Options Install vs. Source Install package – upgrades from v3 to v4 Source package – no auto upgrade path Starter Kit Separate Docs Download (PDF) Installation templates Modules Separate from Core Place desired modules in Install directory
12
DNN v4 Installation Guidance Unzip the Install package to a directory Set directory permissions (ASPNET/Network Service) Create empty SQL database, create account as db_owner Create virtual web directory, configure for ASP.NET v2 Rename release.config to web.config Edit web.config: DB connection strings MachineKeys custom settings Browse to http://localhost/vdir - automatically sets up site Change Host and Admin passwords!
13
Deploying Your Portal Local vs. hosted install Ideally: your web host supports DNN auto install Reality: build a local staging site first Object: install only runtime files on hosted site Upgrades: rehearse on your staging site first! Shared hosting / databases use objectQualifier (any unique string) in web.config for shared DBs Set AutoUpgrade setting in web.config to False while configuring site Browse to: /install/install.aspx?mode=install Running in Medium Trust environments add requirePermissions=“False” to all config sections see Code Access Security (CAS) document Use portal templates & module exports to deploy content Think through (& test!) your backup / restore process
14
Upgrading DotNetNuke Source package: no auto upgrade from DNN v3 to v4 Project models & directory structures are different Back up current configuration, database, web.config Unzip the new install package into portal directory Configure new web.config DB connection strings, MachineKeys, custom settings Browse to the site Obsolete files are automatically deleted (\portals\_default\<ver>.txt) Rehearse the upgrade on your staging site
15
Godaddy deployment case study Godaddy deployment case study Export template and content of local version of site thru the host login Setup web site for asp.net 2.0 Godaddy - turn off front page extensions Godaddy - create custom directory ie DNN4, so app is deployed to http://www.tackleboxandToolshed.com/DNN4 http://www.tackleboxandToolshed.com/DNN4 Godaddy - grant appropriate permissions for the DNN4 folder modify the web.config to the full db server name (ie… connectionString="Server=xxxxx- v06.prod.mesa1.secureserver.net;Database=DB_XXXXX;Us er ID=userid;Password=password;" modify web.config to the object qualifier to a unique name for this set of tables. Ie objectQualifier="DNN4"
16
Deploy my locally developed site to a Godaddy hosted service Deploy my locally developed site to a Godaddy hosted service use Internet Explorer or Visual Studio to FTP the original downloaded install DNN content with modified config to the site, make sure the _default directory gets copied under the Portals folder Open web site via FTP in Visual Studio 2005 Copy the template and content saved off 2 files (xxxxx.template and xxxxx.template.resources) to the _default directory folder Delete or remove conflicting entries in any DNN web.config files in the root so the only web.config is in the DNN subfolder, (other wise you may get a parser error that the database name was already defined) Run default.aspx and click link to install the DNN and the database Run the wizard create the site, pick your template you uploaded and make the site the same name, so all images will be loaded correctly. Otherwise, you need to edit each Html control for the new site name. Backup site back to local drive using web copy.
17
DotNetNuke v4 on ASP.NET v2 Stan Schultes DNN v4 – First Look What’s New for ASP.NET v2 Developing with DNN v4
18
First Look at DNN v4 v3.2 / v4.0 – new features: Not so many “visual” changes – more under the covers Client API / AJAX Windows Authentication Navigation provider Installer process Differences between v3.2 and v4.0 How you build and where DNN runs Migration to ASP.NET 2.0, SQL 2005 Internal code changes for FW v2 Starter Kit CBO support for generics Medium Trust environments
19
What’s New for ASP.NET v2? Client API Enhancements New Client Script Manager class Navigation Controls use the Provider model Windows Authentication (Admin -> Authentication) New ConfigurationManager class for web.config Changes in handling of XSL Transforms CBO class updated to support Generics return rather than ArrayList Code rewrites for deprecated classes/methods
20
Developing with DNN v4 Starter Kit with Visual Web Developer (VWD) Visual Studio 2005 & SQL Server 2005 Project directory structure changes dramatically Provider model used throughout Core & standard modules are written in VB Develop custom modules with any.NET language Custom Module migration Test - v3 modules should run on FW v2.0 Convert to ASP.NET v2 controls, upgrade 3 rd party Use IIS vs. built-in Cassini web server
21
Demonstration # 3 Running DNN v4 in Visual Studio 2005
22
DNN and the Provider Model Joe Brinkman What is the Provider Pattern? Extending DotNetNuke with Providers Demo: Overriding default Providers Using Providers in your own code
23
What is the Provider Pattern? Abstract Factory Pattern Provides for runtime extensibility Adds caching to improve performance
24
Provider Architecture Concrete Implementation Overrides Abstract methods Abstract Provider.Instance() factory method Abstract API methods Your Code Calls here These methods really get called
25
Provider Benefits Extensibility Decreases coupling Improves maintenance Speeds development
26
Extending DotNetNuke Caching Provider Data Provider Friendly URL Provider HTML Editor Provider Logging Provider Scheduling Provider Search Indexing Provider Search DataStore Provider Membership Provider Profile Provider Role Provider
27
DotNetnuke Case Study Logging Provider Problem XML Logging Provider Size problems Concurrency problems Solution DB Logging Provider Scales better Doesn’t count against your hosting space limits Concurrency is easier to deal with
28
Demonstration # 4 Providers: Custom Search Indexer
29
HTML-Based DNN Skinning Tracy Wittenkeller DesignHTMLCSSXML
30
Components of DNN Skinning Design Creative freedom with minimal restrictions Fixed width vs. minimum width
31
Components of DNN Skinning HTML Why HTML? Comfort zone Tables-based approach Tokens Unique skin object identifiers Code snippets Pane IDs
32
Components of DNN Skinning CSS Default styles used by DNN Solpart menu “SiteWidth” table style
33
Components of DNN Skinning XML Global attributes Used to customize the appearance of skin objects Solpart menu
34
Demonstration # 5 DotNetNuke Skinning
35
Learn More www.dotnetnuke.com - project download (register) and info support.dotnetnuke.com - Gemini bug tracker http://forums.asp.net/90/ShowForum.aspx - DNN main forum http://www.dotnetnuke.com/default.aspx?tabid=795 - full DNN forums list http://forums.asp.net/1107734/ShowPost.aspx - DNN 3.2 and 4.0 (pinned post) http://forums.asp.net/1114393/ShowPost.aspx - DNN v4 starter kits & templates http://forums.asp.net/1105076/ShowPost.aspx - starter kits forum thread http://forums.asp.net/1123229/ShowPost.aspx - installing DNN v4 source http://www.adefwebserver.com/DotNetNukeHELP/DNN_Module4/ - DNN v4 module development tutorial http://forums.asp.net/1156381/ShowPost.aspx - discussion of web application projects http://msdn.microsoft.com/msdnmag/issues/06/01/ExtremeASPNET/ - explains ASP.NET v2 codebehind model http://weblogs.asp.net/bsimser/archive/2006/01/31/437023.aspx - DNN vs. Sharepoint discussion http://sourceforge.net/projects/goog-sitemapgen/ - Google sitemap generator www.asp.net - Microsoft’s ASP developer site www.codeproject.com/database/ConfigureMSDE.asp?print=true
36
Presenter Contact Info Russ Fustino – Microsoft DCC rfustino@microsoft.comhttp://blogs.msdn.com/rfustino/ His boss: msdnmgrs@microsoft.com Stan Schultes – Microsoft MVP (VB) stan@vbnetexpert.comhttp://www.vbnetexpert.com Joe Brinkman – Microsoft MVP (ASP.NET) joe.brinkman@tag-software.netwww.tag-software.net Tracy Wittenkeller – Principal, T-WORX tracyw@t-worx.comwww.t-worx.com
38
Background Material The following provides background material for the presentations made today.
39
WebCast Series on DotNetNuke 2005 WebCasts: Jan 31: DNN v3 – Overview Jan 31: DNN v3 – Installation and Configuration Feb 4:DNN v3 – Portal Management Feb 4:DNN v3 – Custom Module Development May 16:DNN v3 – Building Custom Modules May 16:DNN v3 – Advanced Module Development 2006 WebCasts: Feb 13:DNN v4 – Overview Feb 13: DNN v4 – Running on ASP.NET v2 http://msdn.microsoft.com/webcasts http://www.vbnetexpert.com (links to above, DotNetNuke downloads)
40
Web Portal Introduction What is a Web Portal? Business Case Open Source Project DotNetNuke Project History Target Audiences: Web Hosters Corporate Portal Developers Individual Users
41
DNN v4 Installation Requirements Win2K, WinXP, or Win2K3 with IIS & SMTP DNN v3.2:.NET FW v1.1, SQL 2000 / MSDE Visual Studio 2003 for development DNN v4.0:.NET FW v2.0, SQL 2005 / Express (or SQL 2000) Visual Studio 2005 for development
42
Installation Tips & Tricks Read the Installation Guide! Setup guides: \documentation\*.html Site Builder Wizard – rehydrate from template Import Module content Bulk resource install directories: Container, Language, Module, Portal, Skin, Template Exception log in \portals\_default\logs Installation failures: try delete & re-create DB Watch DNN forums & bug tracker for fixes
43
Portal Configuration & Mgmt Host vs. Portal Admin Roles Portal Templates, Site Wizard Skin portals, pages, modules Providers for plug-in flexibility Data access, membership, authentication, html edit, search, scheduling, logging, friendly urls, navigation, caching Scheduled Tasks Custom Module / Resources Installer Install page or scheduled event Virtualization – many portals/subs in 1 install Help Mechanism
44
DNN Project Organization & Support Core Team: Board, Core, Trustees Projects – each with Lead & Team: Core: Client API, Localization, Search, Web Controls Most “standard modules” plus: ActiveDirectory, Blog, Forum, Gallery, Help, Repository, Wiki DNN Website, Blogs, Forums, Bug Tracker Benefactor Program Community
45
Project Futures (Roadmap) Extend Membership, Roles & Profile Services Categorization System (Content Management) Document Security Improvements Localization – Dynamic / Content SSL Portal Groups Workflow / Versioning Device Support
46
DNN v4 – Tips & Tricks Use page preview as Admin (remember!) Modules visible only to Admin show red box pages visible only to Admin don’t show any flag Portal alias strings Add functionality with Custom Modules vs. making core changes Log Viewer Admin & Host show different item types Documentation \documentation\*.html – installation guidelines 20 PDFs – many details explained (separate download) Watch DNN forums & bug tracker for status & fixes Visit the many resource sites for skins, containers, tutorials, other tips & tricks, etc.
47
DNN v4 – Tips & Tricks DNN Forums are your friend Watch your Log Viewer for errors Manage your database size Dev machine: set DB recovery mode to Simple Build a sitemap for search engines Build a staging site for upgrades (VPC), always back up before attempting See \docs dir, DNN documentation (PDF)
48
Using Providers in your code Most common usage – DataProvider Define abstract DataProvider class Define concrete Provider for each DB type
49
Providers - Related Resources Provider Model Design Pattern and Specification, Part 1 http://shrinkster.com/cvq http://shrinkster.com/cvq Provider Design Pattern, Part 2 http://shrinkster.com/cvs http://shrinkster.com/cvs
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.