Umbraco 和 YAF
我正在尝试将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您似乎正在尝试在 .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.
我没有想出这个,但这是来自 http://our.umbraco.org/forum/getting-started/installing-umbraco/11233-Umbraco-and-YAF?p=0:
确保您的 YAF 安装是真的很方便。我知道这听起来有点奇怪,但我
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
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