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.0Problems with Module Template 4.03.02Problems with Module Template 4.03.02
Previous
 
Next
New Post
7/16/2006 12:18 PM
 

Hi there,

I'm trying to create a C# module using DNN Module Template in VS2005.

When I try to compile (even without addind a single line of code) I got the following error:

Error 1 The name 'DataProvider' does not exist in the current context C:\Websites\ContactForms\App_Code\ContactForms\Controller.cs 71 17 C:\Websites\ContactForms\

Any ideas to solve this one?

Regards

 
New Post
7/16/2006 2:07 PM
 
Do you have this in your web.config file?


        <compilation>
             ...
            <codeSubDirectories>
                <add directoryName="ContactForms"/>
            </codeSubDirectories>
        </compilation>


ver 4.3.1 (to 8 July 2006) ver 4.3.2 (to 20 July 2006) ver 4.3.3 (to 5 Aug 2006) ver 4.3.4 (to 20 Sep 2006) ver 4.3.5 (to 25 Dec 2006) ver 4.4.0 (to date)
 
New Post
7/16/2006 2:27 PM
 

I have the same problem (and many others too) although I did have the compilation tag activated.

<compilation>
             ...
            <codeSubDirectories>
                <add directoryName="MyCSModule"/>
            </codeSubDirectories>
 </compilation>

For some reason putting C# code in the solution seems to corrupt the whole build...

Thanks for any help

Costantino

 
New Post
7/16/2006 5:04 PM
 

This are several bugs with the c# module template - I experience the same issue.  From what I remember, you need to change the namespaces on two files in the App_Code folder (They still mention TestModule).  Also, you need to change method names in the dataprovider to reflect your module (they also include the word 'testmodule')  Finally, I had to change a couple lines of code that looked very vbish - () instead of [] and '&' instead of '+'.  Also had to add some parenthesis to a 'ToUpper()' function call.

Bob

 
New Post
7/16/2006 5:44 PM
 

Hi there,

this is correctly set up. I can do a module using the template in 4.0.3 without any issues.

using the 4.3.2 version I got the errors in the dataprovider

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problems with Module Template 4.03.02Problems with Module Template 4.03.02


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