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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Using DNN controller classes from a Windows Forms applicationUsing DNN controller classes from a Windows Forms application
Previous
 
Next
New Post
9/20/2006 4:32 PM
 
FELKERD,
    I have exactly what you are looking for, I just got it to work myself. It's a hack, but it works well.

1. Make sure all the DotNetNuke web.config provider sections, etc are copied into your app.config.
2. Include your custom data providers and controllers in your Windows App project.
3. Make sure your main form, providers and controllers reference the DotNetNuke.dll 3.x (not the project) allong with the Microsoft Application Blocks, etc.
4. Change your default providers for caching & logging if you don't want to rely on a database
    Cache: FileBasedCachingProvider
    Logging: XMLLoggingProvider
       - Copy the "C:\Inetpub\wwwroot\DotNetNuke\Portals\_default\Logs" directory to the root of your new project to ensure XMLLoggingProvider can get to it's template files & has a place to store it's logs.
   
MOST IMPORTANT STEP
5. Make sure your DotNetNuke.Common.Globals are set.
    Example:
   
            private void Form1_Load(object sender, System.EventArgs e)
        {
            this.writer = new RecordWriter();
            this.po850s = new ArrayList();
            this.po850s_ForBatch = new ArrayList();
            this.refreshStatus();

            DotNetNuke.Common.Globals.ApplicationMapPath = "C:/DOCUME~1/gbruno/MYDOCU~1/VISUAL~1/PUBLIC~3";
            DotNetNuke.Common.Globals.ApplicationMapPath = "/";
            DotNetNuke.Common.Globals.AssemblyPath = "C:\\DOCUME~1\\gbruno\\MYDOCU~1\\VISUAL~1\\PUBLIC~3\\bin\\Debug\\DotNetNuke.dll";
            DotNetNuke.Common.Globals.HostMapPath = "C:\\DOCUME~1\\gbruno\\MYDOCU~1\\VISUAL~1\\PUBLIC~3\\_default\\";
            DotNetNuke.Common.Globals.ServerName = "bruno5";
            DotNetNuke.Common.Globals.HostPath = "/_default/";
        }


*** Make sure the 8.3 format for the AssemblyPath (it needs to stay under char[260] when other things in DotNetNuke molest it). I'm going to report this bug to them...

    I'm using the my custom providers in my Windows App right now. I will give further explanation to what is going on here a in another post. I want to get back to my project and finish this dang thing. Let me know if you need additional help FELKERD.
 
New Post
2/10/2007 4:43 AM
 

Hi,

Im also trying to access Dotnetnuke Data through a winforms app. I liked the approach of the webservice.

Could you please tell us a little more about it? what would the web service contain? Every function we need to access would be implemented in the webservice?

Many thanks in advance

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Using DNN controller classes from a Windows Forms applicationUsing DNN controller classes from a Windows Forms application


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