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 STEP5. 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.