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...Using Modules a...Using Modules a...How to add Forum module to C# Web SiteHow to add Forum module to C# Web Site
Previous
 
Next
New Post
6/21/2010 8:28 AM
 
I'm trying to add Forum module from DNN to my Web Site manually , so I add DNN dlls , some controls and Desktop Module forum , then I do :

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Forum.aspx.cs" Inherits="Forum" %>

<%@ Register  TagPrefix = "Nuke" TagName = "Forum" Src = "~/DesktopModules/Forum/Forum_Container.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

    <Nuke:Forum ID = "ArtNF" runat="server" ClientIDMode="AutoID" />

</asp:Content>

but it's only a try and Error message here :

Cannot register or retrieve components until ComponentFactory.Container is set
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Cannot register or retrieve components until ComponentFactory.Container is set

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Cannot register or retrieve components until ComponentFactory.Container is set]
   DotNetNuke.ComponentModel.ComponentFactory.VerifyContainer() +80
   DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +36
   DotNetNuke.Services.Cache.CachingProvider.Instance() +35
   DotNetNuke.Common.Utilities.DataCache.GetCache(String CacheKey) +33
   DotNetNuke.Modules.Forum.Config.GetForumConfig(Int32 ModuleID) +91
   DotNetNuke.Modules.Forum.Container.ForumConfig() +65
   DotNetNuke.Modules.Forum.Container.Page_Init(Object sender, EventArgs e) +67
   System.Web.UI.Control.OnInit(EventArgs e) +91
   System.Web.UI.UserControl.OnInit(EventArgs e) +83
   System.Web.UI.Control.InitRecursive(Control namingContainer) +140
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480

So, how can I add this module , how can I fix this error ?

(sorry for text formatting m I can't understand how to paste code here ... )
 
New Post
6/21/2010 12:23 PM
 
If you are trying to use a DotNetNuke module [The forums] outside of a DotNetNuke website, it's not going to work. Especially with the forums, there are a lot of elements that are required by the module that do not exist, or are not populated without it being loaded by a DotNetNuke website.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How to add Forum module to C# Web SiteHow to add Forum module to C# Web Site


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