Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Problems with Module Template 4.03.02
Previous Previous
 
Next Next
New Post 7/16/2006 10:18 AM
User is offline Carlos Mendes
44 posts
www.elevo.pt
10th Ranked


Problems with Module Template 4.03.02 

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 12:07 PM
User is offline wildfiction
240 posts
www.headvert.com
9th Ranked


Re: Problems with Module Template 4.03.02 
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 12:27 PM
User is offline costantino
10 posts
10th Ranked


Re: Problems with Module Template 4.03.02 

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 3:04 PM
User is offline rsriley
10 posts
www.syntheticthought.com
10th Ranked


Re: Problems with Module Template 4.03.02 

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 3:44 PM
User is offline Carlos Mendes
44 posts
www.elevo.pt
10th Ranked


Re: Problems with Module Template 4.03.02 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Problems with Module Template 4.03.02
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -
Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP