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.0c# and starter kitc# and starter kit
Previous
 
Next
New Post
10/16/2007 9:24 AM
 

Hi All

within the starterkit 4.5.5 when I create a C# module and I build my Module I have an error due of code in App_code folder which does'nt support C# but only VB.... How can I fix this probleme ?

An other question : Is a method available on DNN framework to send email ?

Best regards

Jerome


jerome fortias My DNN websites http://www.sap-integration.net (First french community dedicated to SAP). http://www.onplonge.com (rebreather divers)
 
New Post
10/16/2007 9:45 AM
 

First, fix the two syntax errors:

http://kemmis.info/blog/archive/2007/10/16/syntax-errors-in-c-dotnetnuke-4.5.5-module-starter-kit.aspx

Rename the Module folders that the kit created.

And make sure you add your module's directory name into the portion of your web.config file:


  105    <codeSubDirectories>

  106       <add directoryName="YourModuleName" />

  107    </codeSubDirectories>

 

 Opps, that code was cut off when i posted earlier...

 
New Post
10/16/2007 10:03 AM
 
Also, try this method for sending mail:

DotNetNuke.Services.Mail.Mail.SendMail(...);
 
New Post
10/16/2007 12:45 PM
 

When building a module in C#, you have to specify the folder in your web.config file.  In the web.config file there is a section called codeSubDirectories.  Any directory in the App_Code folder that is in C# has to be specified in this section.  There should be an entry in the web.config file.  If you need more information, Michael Washington does quite a bit of his work in C# and has put together a large section of knowledge on his website at http://www.adefwebserver.com/DotNetNukeHELP/

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0c# and starter kitc# and starter kit


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