Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将DotNetNuke论坛添加到默认的C#网站?_C#_Asp.net_Dotnetnuke - Fatal编程技术网

如何将DotNetNuke论坛添加到默认的C#网站?

如何将DotNetNuke论坛添加到默认的C#网站?,c#,asp.net,dotnetnuke,C#,Asp.net,Dotnetnuke,我正在尝试将论坛模块添加到我的网站,因此我添加了DLL、组件和模块,以及: <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Forum.aspx.cs" Inherits="Forum" %> <%@ Register TagPrefix = "Nuke" TagName = "Forum" Src = "~/DesktopModu

我正在尝试将论坛模块添加到我的网站,因此我添加了DLL、组件和模块,以及:

<%@ 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>
那么如何将论坛从DNN添加到我的页面?或者如何修复此错误


谢谢

DNN模块依赖于本机DNN组件,因此您尝试执行的操作是不可能的。您可以创建一个子站点(在虚拟目录中),其中可以运行安装了论坛模块的DNN实例

或者,尝试众多.NET开源论坛之一-

    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