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.0Custom Module Development Sharing a ClassCustom Module Development Sharing a Class
Previous
 
Next
New Post
2/25/2006 5:18 PM
 
I am developing my own custom module for DNN 4.0.2 using VS2005.

I have a DataAccess.cs class that needs to be called from many of my custom modules. 

I have the new module directory http://localhost/Schalmo/App_Code/RentalProperties and when I put the DataAccess.cs class inside there everything works fabulous. 

I need to move DataAccess.cs outside the module directory so it can be used by ALL custom developed modules.
  
Here is a list of things I have tried unsuccessfully:
1. Created my own directory in App_Code called DataAccess and added the <codeSubDirectories> to the web.config and my module that calls the DataAccess gives

Error    103    The type or namespace name 'DataAccess' could not be found (are you missing a using directive or an assembly reference?)    C:\DotNetNUke\App_Code\RentalProperties\PropertyData.cs    8    13    http://localhost/Schalmo/

Can anyone give me insight as to what I need to do to reference the DataAccess Outside?  I hope I am doing something wrong because Class Library of 1.1 was definatly much easier.

Thanks

 
New Post
2/26/2006 4:59 AM
 
The approach you've described works well for me. Make sure the tag <add directoryName="<Component directory>" /> is defined before the subdirectories of modules using it.

Best regards, Evgeny
 
New Post
2/26/2006 10:53 AM
 
Wonderful!   Don't know why that didn't click into my head, but works great!  Thank You

Just needed to compile the DataAccess <codeDirectory> above the module that uses it.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom Module Development Sharing a ClassCustom Module Development Sharing a Class


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