Saturday, July 31, 2010
  Search
 
Register
Login
 
Adding Google AdSense with Video
Adding Google AdSense to your DotNetNuke portal has never been easier. By default, a Google AdSense module is added the list of installed modules when your DNN portal is first created. It's easy to ...

Find this article and more in the Modules category

Read This Article . . .

SERIES: Anatomy of a DNN Web.Config File-connectionStrings
The section holds all the necessary information for database communication from your website. At minimum, there will be at least one connection string for any DotNetNuke website...

Find this article and more in the category

Read This Article . . .

Customize Google Analytics for DotNetNuke Search
You can easily set up your Google Analytics account to track the search feature on your DotNetNuke website and take advantage of all the in depth reporting that Google has to offer. It's simple, here...

Find this article and more in the category

Read This Article . . .

How To Customize the Privacy and Terms Links on Your DotNetNuke Portal
Straight out of the box, DotNetNuke already has a lot of things covered. But, what do you do when you are ready to begin customizing your site. Sometimes, it’s not so easy to figure out how to make t...

Find this article and more in the category

Read This Article . . .

Getting Aquainted with the DNN Classes
 So, you've decided to start checking out DotNetNuke development and you're wondering where to start, right? Well, it's easy to start taking a quick tour of the DotNetNuke classes now with the help o...

Find this article and more in the category

Read This Article . . .

Quick Check for Troubleshooting the CodeEndeavor Ajax Templates
I haven’t just installed the the template and created a module out of the box yet. However, I have come across a few things that I know to check and fix and I’m up and running in no time at all. If y...

Find this article and more in the category

Read This Article . . .

How to Install DotNetNuke 5.0 Cambrian and Video
 This video tutorial covers installing using the Custom installation option, with SQL Express and also an external SQL Database. Find out more about which package to download and how to kick off the ...

Find this article and more in the category

Read This Article . . .

Creating new DotNetNuke HTTP Alias Records
 Setting up DotNetNuke to handle serving requests for Portal Alias records is a breeze. You can use these records to direct your site to handle requests for multiple domain names to one website with ...

Find this article and more in the category

Read This Article . . .

Setting Up the DotNetNuke Side of Multi-Websites
Ok, so by now you know that DotNetNuke can handle multiple websites, but you still want to know why. Well, it’s pretty easy once you know how to do it, but it can be pretty confusing to some who are ...

Find this article and more in the category

Read This Article . . .

Getting Started with Code Endeavors Ajax Compiled Module Template
DotNetNuke Ajax development just got easy thanks to Jon Henning and his Ajax Compiled Module templates. He’s got them listed on CodePlex, they’re updated for DNN 5, and they are available in C# and V...

Find this article and more in the category

Read This Article . . .

Recently Added Articles

Minimize
Article List

 

Getting Started with Code Endeavors Ajax Compiled Module Template

12/12/2008 3:47:28 AM - By Briana Tarrance

Category: | | Comments 0

 

 

Related Links

Gather Required Materials

First thing to do is download the compiled module template as well as the MS Community Build Tasks

CodeEndeavorsDNNAjaxModuleTemplatesCodePLexSTEP 1: Download the  Code Endeavors DotNetNuke Ajax Module Templates for C# and VB.NET from CodePlex

 

 

 

 

MSBuildCommunityTasksProject STEP 2: Download the MSBuild Community Tasks MSI installer or source code from Tigris.org

 

 

 

 

DotNetNukeWebsite

STEP 3: Install and Open a DotNetNuke Source Package. Must be DotNetNuke 5.0 Beta 2 or greater.

 

 

Begin Project Development

image

Right click on the Solution, Go to Add and New Project

If you do it from within the DotNetNuke website, you do not get the same template options. If you have installed the DotNetNuke StarterKit package, you’ll notice that you only have options for dynamic and simple modules when you add from within the website. At the solution level, you will have access to the compiled module template as well. If you are unfamiliar with the packages, basically the Starter Kit is an add in for Visual Studio that will install templates for you for DNN Portal, Skin and Module Development. If you need more information on installing the Source Code package, read How to Install DotNetNuke 5.0 Cambrian and Video.

 

 

 

 

 

Select DotNetNuke Compiled Ajax Module. Name the project and also select the framework that you want to work with in the top right corner.

image

 

 

 

 

 

 

 

 

 

 

 

 

Next, fill in the intro screen. From here you can set up your company information and the namespace you want to use during your development. The location you give to the DotNetNuke directory will be used to automatically pull in the references that are required for the project as well as configuring the automated deployment processes. The namespace you specify will be used to set up you project properties and will be used on server and client side code files. The remainder of the files will be used on the new DotNetNuke 5.0 manifest files and will be shown to users as they install new “extensions”. To see more about this, visit the article, DotNetNuke 5.0 Cambrian Package Writer for Module Developers

image

 

 

 

 

 

 

 

 

 

 

On the following screen after filling out your personal information, you will be presented some security options about how Visual Studio should open the template project. This screen lets you know that a custom MS Build task is running. If you don’t see this screen, then you need to verify your MS Build Tasks installation. In order to use the custom build tasks, you need to select “Load project normally”.

 

 

image

 

Now the module should be installed and you should see the Code Endeavors welcome screen along with the project in your Solution Explorer. The welcome screen will tell you about a few things that you will need to do prior to going any further. There are some limitations that Visual Studio imposes which requires some work on our part, just the same as creating a DotNetNuke module from a template.

image

Here are some things that you should take the time to look at, review and get familiar with:

  1. Right click on the project file and go to Properties. Remove the Root Namespace and make sure the assembly is named as you desireimageimage
  2. Verify the DNNModule.targets file has the correct DotNetNuke deployment path. CodeEndeavorsDNNModule.TargetsFile

The welcome page also states this about the DNNModule.targets file that you may want to check:

  • Open your DNNModule.targets file.
  • Locate the line and place your dotnetnuke folder location in between (L:\Users\btarrance\My Documents\Visual Studio 2008\Projects\DNN5\DNN5RC2Source\Website)
  • Optionally set the deployment of the pdb file with the 1 setting. 
  • Close and re-open your project. Your changes to the MSBuild script will not take affect until you do so!
  • After compiling your module, the installation file will be copied to your dotnetnuke site ready to invoke installation.

 

Once you have verified everything you need to, you need to build the project. Building the project will automatically deploy the module package to your DotNetNuke installation. You will notice in your physical file directory  a folder called, "lib”. This is where the references are for the minimum version you are trying to develop against. Additionally, you will notice a “deploy” folder that contains module packages that have been created for you. You will find an install version as well as a source version.

Navigate to your website and use the URL method to install resource: http:/www.howtodotnetnuke.com/install/install.aspx?mode=installresources

On my first attempt, I received an error during installation.

CodeEndeavorsError

However, I was able to find out what the issue was by logging into my site and trying to install using the traditional method. Remember, with DotNetNuke Cambrian, the Module Definitions page has now become Extensions. Installing with this method will help you track down the errors. In my case, the compiled .dll from my project was having a hard time copying from a temp directory to the DNN website bin directory. I just copied the .dll into the website bin directory and modified the .dnn manifest in the project. Rezipped it up and installed just fine.

powered by metaPost
 

Related Articles
Quick Check for Troubleshooting the CodeEndeavor Ajax Templates

 
 
Copyright 2008 by Virtual-Essentials.com Privacy Statement    Terms Of Use