内容模块出现2sxc9.32.0错误

问题描述 投票:-2回答:1

DNN:8.0.4 2sxc:9.32.0

这是从早期版本升级到8.0.4,但该站点运行没有问题。

我在页面中添加了一个内容模块,并选择了“Title Over Image”内容项。我收到此错误:

错误:System.IO.FileLoadException:无法加载文件或程序集'System.Web.Helpers,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (来自HRESULT的异常:0x80131040)文件名:Connect.Koi.Context上的Connect.Dnn.Koi.DnnSkinFile.AutoDetect()中的'System.Web.Helpers,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'。 HttpContextState.TryToDetectTheCssFramework()在Connect.Koi.Context.HttpContextState.get_CssFramework()在Connect.Koi.Context.ToolsForCurrentState.get_Css()在Connect.Koi.Koi.get_IsUnknown()在ASP._Page_Portals_781_2sxc_Content__Shared ___ Koi_Admin_Messages_cshtml.Execute(c)中: \ inetpub \ vhosts \ dev.patapscoresearch.com \ httpdocs \ Portals \ 781 \ 2sxc \ Content_Shared - Koi Admin Messages.cshtml:System.Web.WebPages.WebPageBase上System.Web.WebPages.WebPageBase.ExecutePageHierarchy()的第8行。 System.Web.WebPages上System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)的System.Web.WebPages.WebPageBase。<> c__DisplayClass7.b__6(TextWriter writer)上的ExecutePageHierarchy(WebPageContext pageContext,TextWriter writer,WebPageRenderingBase startPage)。 WebPageBase.Write(HelperResult结果)a t ASP._Page_Portals_781_2sxc_Content__Shared ___ Assets_cshtml.Execute()位于c:\ inetpub \ vhosts \ dev.patapscoresearch.com \ httpdocs \ Portals \ 781 \ 2sxc \ Content_Shared - Assets.cshtml:第2行,位于System.Web.WebPages.WebPageBase.ExecutePageHierarchy() System.Web.WebPages.HelperResult.WriteTo上的System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext,TextWriter writer,WebPageRenderingBase startPage)处于System.Web.WebPages.WebPageBase。<> c__DisplayClass7.b__6(TextWriter writer)处。(TextWriter)编写者)在System.Web.WebPages.WebPageBase.Write(HelperResult结果)at ASP._Page_Portals_781_2sxc_Content__Content ___ Image_full_width_text_cshtml.Execute()在c:\ inetpub \ vhosts \ dev.patapscoresearch.com \ httpdocs \ Portal \ 781 \ 2sxc \ Content_Content - 图片已满-width text.cshtml:位于ToSic.SexyCon的System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext,TextWriter writer,WebPageRenderingBase startPage)的System.Web.WebPages.WebPageBase.ExecutePageHierarchy()中的第4行tent.Engines.RazorEngine.Render(TextWriter writer)在C:\ Projects \ 2sxc-dnn742 \ Website \ DesktopModules \ ToSIC_SexyContent \ 2Sexy Content Razor \ RazorEngine.cs:第65行ToSic.SexyContent.Engines.RazorEngine.RenderTemplate()in C:\ Projects \ 2sxc-dnn742 \ Website \ DesktopModules \ ToSIC_SexyContent \ 2Sexy Content Razor \ RazorEngine.cs:第92行,位于C:\ Projects \ 2sxc-dnn742 \ Website \ DesktopModules中的ToSic.SexyContent.Engines.EngineBase.Render() \ ToSIC_SexyContent \ ToSic.Sxc \ SexyContent \ Engines \ EngineBase.cs:位于C:\ Projects \ 2sxc-dnn742 \ Website \ DesktopModules \ ToSIC_SexyContent \ ToSic.Sxc \ SexyContent \ SxcInstance_Render中ToSic.SexyContent.SxcInstance.Render()的第92行.cs:第58行WRN:程序集绑定日志记录已关闭。要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.注意:程序集绑定失败日志记录会导致一些性能损失。要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog]。

dotnetnuke 2sxc
1个回答
0
投票

我的猜测是,由于一些不明原因,你错过了文件夹结构中的web.config。最好将它与工作设置进行比较 - 您应该在portals / x / 2sxc文件夹中看到web.config。我认为应该解决它。

这在https://github.com/2sic/2sxc/issues/1595也被问到,并且找到了解决方案。请检查一下。

© www.soinside.com 2019 - 2024. All rights reserved.