Umbraco 和 YAF

发布于 2024-09-12 13:02:58 字数 835 浏览 9 评论 0原文

我正在尝试将 YAF 与 Umbraco 一起使用。最新版本的变化足够大,旧的集成方法似乎不起作用。我自己已经完成了相当多的工作,但我遇到了这个错误:

无法加载一个或多个请求的类型。检索 LoaderExceptions 属性以获取更多信息。 描述:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Source Error: 


Line 23:     <img src="~/yaf/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>    
Line 24:     <form id="form1" runat="server" enctype="multipart/form-data">
Line 25:         <YAF:Forum runat="server" ID="yafForum" />
Line 26:     </form>
Line 27: </body>

我感觉YAF没有启动数据库。在以前版本的 YAF 中,您在 web.config 文件中加载了一个 INIT 模块。该模块不再存在(YAF.Base.YAFInitModule)。

I am trying to use YAF with Umbraco. The newest version out changed enough where the old integration methods don't seem to work. I have gotten everything fairly far on my own but I have hit a brick wall with this error:

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Source Error: 


Line 23:     <img src="~/yaf/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>    
Line 24:     <form id="form1" runat="server" enctype="multipart/form-data">
Line 25:         <YAF:Forum runat="server" ID="yafForum" />
Line 26:     </form>
Line 27: </body>

I have a feeling that YAF is not starting up the database. In previous versions of YAF there was an INIT module that you loaded in your web.config file. This module is no longer there (YAF.Base.YAFInitModule).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

霊感 2024-09-19 13:02:58

您似乎正在尝试在 .net 4.0 环境中运行 YAF。然而,YAF 程序集是在 .net 2.0 中构建的。这可能是导致您出现问题的原因。

您可以下载 YAF 源代码并更改项目的属性以构建为 .net 4.0。

It looks like you're trying to run YAF in a .net 4.0 environment. The YAF assemblies, however, are built in .net 2.0. This could be the cause of your problems.

You can download the YAF source and change the project's properties to build to .net 4.0 instead.

等你爱我 2024-09-19 13:02:58

我没有想出这个,但这是来自 http://our.umbraco.org/forum/getting-started/installing-umbraco/11233-Umbraco-and-YAF?p=0

确保您的 YAF 安装是真的很方便。我知道这听起来有点奇怪,但我

必须更改 YAF.FileRoot 并且
YAF.AppRoot 几次,直到我得到
它再次启动并运行 - 请参阅
应用程序配置)。测试这个的最好方法
是覆盖你的主要 web.config
(来自 Umbraco 的默认值
来自 YAF.Net 的 web.config 看看你是否
让论坛在子文件夹中运行
(或文件夹结构)用于测试
您可能需要暂时的目的
从您的应用程序中删除 Form.browser
App_Browser目录就是这个文件
当我
只运行 YAF.Net(这很漂亮
明确,因为我们没有权利
参考文献)删除 Umbraco 通道
路径=“umbraco/channels.aspx”
路径=“umbraco/channels/word.aspx”来自
web.config 因为他们使用不同的
CookComputing.XmlRpcV2.dll 比
YAF.Net 确实如此(显然 Umbraco 使用
仍然是一个相当旧的版本)

Umbraco 和 YAF 在 CookComputing.XmlRpcV2.dll 文件中也有所不同。 Umbraco 使用 2.2.0.4,而 YAF 使用 2.4.0.0。您需要将 2.4.0.0 版本部署到服务器的 GAC 才能正常工作

I didn't come up with this but here is the solution from http://our.umbraco.org/forum/getting-started/installing-umbraco/11233-Umbraco-and-YAF?p=0:

Make sure your YAF installtion is really accessible. I know this sounds kind of odd, but I

had to alter YAF.FileRoot and
YAF.AppRoot several times until I got
it up and running again - see
app.config). The best way to test this
is to overwrite your main web.config
(the one from Umbraco with the default
web.config from YAF.Net and see if you
get the forum running in the subfolder
(or folder structure) For test
purposes you might have to temporarily
remove Form.browser from your
App_Browser directory as this file
caused a lot of parsing errors when I
only ran YAF.Net (which is pretty
clear as we do not have the right
references) Remove Umbraco Channels
path="umbraco/channels.aspx"
path="umbraco/channels/word.aspx" from
the web.config as they use a different
CookComputing.XmlRpcV2.dll than
YAF.Net does (apparently Umbraco uses
still a pretty old version)

Umbraco and YAF also differ in the CookComputing.XmlRpcV2.dll file. Umbraco uses 2.2.0.4 while YAF uses 2.4.0.0. You need to deploy the 2.4.0.0 version to your server's GAC to get this working right

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文