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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Development guide errors (Strike 2)Module Development guide errors (Strike 2)
Previous
 
Next
New Post
1/2/2008 11:51 AM
 

OK. I'm am really frustrated right now. My employer wants me to write a DNN module. I've never worked with DNN before, and so far the only thing I've accomplished is giving myself an ulcer from the stress:

First I downloaded the source and just tried to build it. Got 20 errors and 20 warnings. I posted about this a couple weeks ago and I was informed I don't actually need the source version to write a module. Fine. Great.

So I set up an install version and started working through the step-by-step instructions in the module development guide PDF. I got to page 49 by Adobe's count (numbered page 43), second paragraph: "The site should build without errors" (after having manually added a bunch of files to create a new module). WRONG, WRONG, WRONG!!! The project won't build, and I get the following error message: "'Instance' is not a member of 'DataProvider'. C:\DnnInstall\admin\Portal\SQL.ascx.vb 98 49 C:\DnnInstall\."  It's obviously the a name conflict problem. The guide said to create a class file "DataProvider" in App_Code\Survey folder. But the admin\Portal\SQL.ascx.vb file at line 98 calls some static method DataProvider.Instance( ). Since this call is not fully qualified, the compiler thinks it should be calling my new class. I saw nothing in the guide about making a separate namespace.

I don't really want to make a namespace or change the name of this class because I just don't have enough of a sense of how everything fits together so I don't know if making such changes will cause problems down the line. But obviously I can't resolve this compiler error without making some kind of change.

Can anybody point me to some documentation that ACTUALLY WORKS??? Obviously the people working on DNN itself are incapable of producing anything useful, so suggestions for 3rd-party resources would be preferable.

 
New Post
1/2/2008 1:26 PM
 

When you got the 20 errors and 20 warnings did you try rebuilding the project? Generally the errors are due to reference errors because the file referenced isn't in the same location as it was when the source was packaged (C:\DotNetNuke_2). I've never not been able to get the source to compile.

But that's neither here nor there. There are multiple ways to develop modules and Michael Washington has done some excellent tutorials on the different ways. See his post here (http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/74227/scope/posts/Default.aspx).

 
New Post
1/2/2008 3:46 PM
 

I would recommend looking at Michael Washingtons posts.  ALso, I would use the WAP development model if at all possible as well to avoid the need to work with the entire DNN solution.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
1/2/2008 3:49 PM
 

Yeah I apologize for the Module Developer's guide. It worked back when I wrote it over a year ago but perhaps it's now out dated. The biggest problem is I guide you though creating a module using the full DAL and it's a ton of files that are interconnected and the slightest mistake on your part and it wont build.

I recommend you start here:

Super-Simple Module (DAL+) (C# and VB)

After that do this one:

Creating a DotNetNuke Module using LINQ to SQL



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
1/2/2008 4:33 PM
 

Michael,

I know it might sound like I'm beating a dead horse around here....but is there any chance that the guide will be updated in the somewhat near future??? (a month, a year, anything?)


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Development guide errors (Strike 2)Module Development guide errors (Strike 2)


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