aDEFWEBSERVER
Los Angeles, CA *
 Webmaster@ADefWebserver.com

Creating a DotNetNuke® Module

using LINQ to SQL

For absolute beginners!

For DotNetNuke 4

(estimated time to complete this tutorial is 30 minutes)

To use this tutorial you need:

  1. Visual Studio Visual Web Developer Express 2008 (download) or Visual Studio 2008
  2. DotNetNuke (download)
  3. ASP.NET 3.5 (or higher) (download)
 
Note: This tutorial is in C# but the code in VB is available here: Things4SaleVB_02.00.00_Install.zip

Also see:

Also see:
 The ADefWebserver DotNetNuke HELP WebSite

 

 

This tutorial will show you how to create a DotNetNuke module using LINQ to SQL. This will greatly speed module development.

   

SETUP

Follow one of the the options below to install DotNetNuke and to create a DotNetNuke Website:

Install Visual Studio Express 2008 if you haven't already done so. (download)
 

Use Visual Studio 2008 to open DotNetNuke:

You may get a message like this:

Click Yes. This will add  the needed changes to the web.config to allow LINQ to SQL to run.

 
In Visual Studio, select "Build" then "Build Solution". You must be able to build it without errors before you continue. Warnings are ok.
 

Are you Ready to Create the Module?

You must have a DotNetNuke 4 website up and running to continue. If you do not you can use this link and this link to find help.

DotNetNuke is constantly changing as it evolves so the best way to get up-to-date help and information is to use the DotNetNuke message board.

I am sorry I will not be able to respond to individual requests for help on set-up issues. I will be able to help on issues related to the module this tutorial covers.

   

 

     
You can download the finished module at this link.    

Note: In order to run this module on another DotNetNuke site, you need to install ASP.NET 3.5 on the server and modify the web.config of the DotNetNuke site:

Change: the <system.codedom> section to:

<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" extension=".vb" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>

Change: the <assemblies> section to:

<assemblies>
<add assembly="Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies> 

 
Note: Help with the Parser Error: Child Notes Not Allowed    
     
     
 

Next: Setting Up The Module

     
  Hit Counter

If you want to use DotNetNuke, PowerDNN DNN Hosting is a great place to get started.
They let you use DNN for 15 days free before even charging your credit card.


Buy DotNetNuke Modules from Snowcovered
(C) by Michael Washington - ADefWebserver.com - Webmaster@ADefWebserver.com

DotNetNuke® is a registered trademark of the DotNetNuke Corporation