Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module Dev C# Where To StartModule Dev C# Where To Start
Previous
 
Next
New Post
1/9/2007 7:42 PM
 

Hello World,

New to DNN and am using 4.3.something and I want to start developing modules in C#.
I am a bit perplexed how to do this easily given that everything is in VB.
I found an example of a SiteMap written in C# called DnnSiteMap (by BitConstruct??) and had a lot of trouble just taking this source (which had no project file) and integrating it. But here's what I did:

Opened the website for my DNN installation (DNN itself is installed and working fine) in Visual Studio .NET 2005
Copied the files into the /DesktopModules/ folder into a new folder called /DnnSiteMap/ and added the relevant entry into the web.config for this folder. Added a Module definition. It now appears as an available module to add to a page. However when I add it, I get an error indicating that a class does not exist:
"The type or namespace name 'DnnSiteMapController' could not be found"

It so happens that this class is in a seperate code file which sits in the same folder and is in the correct namespace. I have a feeling that I need to be compiling the module seperately somehow. Possibly in its own project?
I'm looking to just start a basic module that doesn't use any new tables; I'd like to write my own SiteMap in C# in a way that I can have the development of the module integrated into the site. That way I can make a minor code change, and rebuild, then test without having to go through a delployment step.

Any help would be greatly appreciated.

Thanks,
Steven

 
New Post
1/10/2007 4:26 PM
 
The best way to start C# module deevlopment is to get the Starter Kit (available from the downloads page) and install that.  You can then create a C# Module using the appropriate Module Item template.  Michael Washington describes how to do this on his site.

Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
1/10/2007 5:10 PM
 
Thanks!

I was confused by the name "Starter Kit" not realising it was a "Developer's starting kit".
Now that I see how the structure of a module should look like, I was able to get the DnnSiteMap in C# working.
I can start my own module dev now.

Thanks again.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module Dev C# Where To StartModule Dev C# Where To Start


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out