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

HomeHomeDevelopment and...Development and...Getting StartedGetting Startedblending C# code with dnnblending C# code with dnn
Previous
 
Next
New Post
2/20/2013 10:23 PM
 

Hi folks,

I'm not sure if this is the right place to ask the question.  But, I am just learning DNN and want to implement some code that i wrote in C# for DNN.  Example, I want to convert metric system to English system and vice-versa.  The code is written in C#.   Everything works great inside Visual Studio 2010.   My question is that how do I upload the code to DNN?   What steps do I need to do?  What Bible do I have to read?  Any video tutorial on this subject?

Thx.

 
New Post
2/22/2013 5:28 AM
 

Hi 

You can do this by creating a custom module. To learn this you can go through dotnetnuke wiki.
http://www.dotnetnuke.com/Resources/Wiki/Page/Module-Development.aspx
http://www.dotnetnuke.com/Resources/Wiki.aspx

Thanks
Sibabrata
Mindfire Solutions

 
New Post
2/22/2013 7:12 AM
 
Or use Chris Hammond's template:

http://christoctemplate.codeplex.com/

It does most of the work for you.

Mark
 
New Post
2/22/2013 2:04 PM
 

thanks guys for the reply.

I've been watching Chris and Scott Wilkinson videos for the past 2 days.   Also, read all the thread at Chris's codeplex.  Got DNN to install on Windows 7x32 bit machine using SQLEXPRESS and VS 2012 Ultimate.

followed Chris's step by step.  I have a project in c:\websites\dnndev.me\desktopmodules

I ran VS as admin.  I chose DNN C# DAL2 for the project type.  Gave it a name.  Uncheck the boxes and change the location as instructed.  Click on OK.  VS seems to do something and then I got err msg,

"The Web Applicatioin Project DNNModule1 is configured to use IIS.  The Web server 'http://dnndev.me/desktopmodules/DNNModule1' could not be found.

Using text editor to change the following file:
<UseIIS>true</UseIIS>
change to:
<UseIIS>false</UseIIS>

<CustomServerUrl>
</CustomServerUrl>
It was emptied before but now I inserted the following:
<CustomServerUrl>
http://dnndev.me
</CustomServerUrl
>

Relaunch VS and run as admin.  Now, the project can open.   Next, modify PROJECT PROPERTY as Chris instructed.
START URL:   http://dnndev.me
Select USE LOCAL IIS WEB SERVER.

Uncheck USE IIS EXPRESS.

Check OVERRIDE APPLICATION ROOT URL.
http://dnndev.me

Got err msg when trying to save the changes above:

The local IIS Url http://dnndev.me/desktopmodules/DNNMo... specified for Web project DNNModules1 has not been configured. To keep these settings you need to configure the virtual directory. Would you like to create the virtual directory now? <YES><NO>

Click on YES.  Got err msg below:
Unable to create the virtual directory. http://dnndev.me/desktopmodules/DNNMo...

I exit VS at this point and save the solution.
Fire up IIS Manager.   Add Virtual Directory for DNNDEV.ME
Alias:   DNNtest
Physical Path:  http://website/dnndev.me/desktopmodul...

VD successfully added.  I restarted the app pool.   Relaunch VS (run as admin) and load DNNModule1 project.  Double check the START URL, etc. as previously mentioned.   Click on CREATE VIRTUAL DIRECTORY.  Got err msg below:

Unable to create the virtual directory.  Could not find the server
'http://dnndev.me/desktopmodules/DNNModule1' on the local machine.
Creating a virtual directory is only supported on the local IIS server.

Now, I'm stuck.  As for experimentation, I revert back to "Use VS Development Server."   Leave everything else as default except the START URL.
Now, project can save fine.   Change to RELEASE and BUILD SOLUTION.   Got err msg below:

Warning 1 Assembly generation -- The version '00.00.01.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format C:\websites\dnndev.me\DesktopModules\DNNModule1\CSC DNNModule1

Error 2 The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly C:\websites\dnndev.me\DesktopModules\DNNModule1\\packages\MSBuildTasks.1.4.0.45\tools\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file:///C:\websites\dnndev.me\DesktopModules\DNNModule1\packages\MSBuildTasks.1.4.0.45\tools\MSBuild.Community.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. DNNModule1


Now, i'm really stuck.  Not sure what's going on.
Where can I find documenation on how to create the module without using the template?
I want to try doing it from scratch and see what can go wrong for round 2.  :-)

 

 

 
New Post
2/22/2013 7:22 PM
 

i'm spending another 10 hours on this thing.
this is my 3rd day now.

i think the problem might be VS 2012 installation/configuration with my W7x32 bit.
will try in VS 2010.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting Startedblending C# code with dnnblending C# code with dnn


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