2010-08-01 23 views
0

我想用Umbraco来使用YAF。在旧集成方法似乎不起作用的情况下,最新版本已经发生了变化。我已经得到了一切相当远的东西,但是我遇到了这样的错误:砖墙有这个错误:Umbraco和YAF

无法加载一个或多个请求的类型。检索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版本中,有一个INIT模块可以在你的web.config文件中加载。此模块不再存在(YAF.Base.YAFInitModule)。

+0

根据YAF的负责人说,这可能是一个权限问题(http://forum.yetanotherforum.net/yaf_postsm42916_Umbraco-and- YAF.aspx#post42916)但我不知道它是什么 – 2010-08-02 03:58:09

回答

0

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

确保您YAF制作安装是很容易得到的。我知道这听起来很奇怪,但我

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和YAF也不同,在CookComputing.XmlRpcV2.dll文件。 Umbraco使用2.2.0.4,而YAF使用2.4.0.0。您需要将2.4.0.0版本部署到您的服务器的GAC才能正常工作

1

它看起来像你试图在.net 4.0环境中运行YAF。但是,YAF程序集内置于.net 2.0中。这可能是你的问题的原因。

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

+0

嗯......我认为4.0是向后兼容 – 2010-08-02 05:23:21

+0

哦,不,它是一个全新的运行时。实际上,按照安装YAF的说明,即使它是2.0的扩展,你也显然必须为3.5构建。不知道为什么会这样,虽然.. – sebastiaan 2010-08-02 06:14:46

+0

这最终导致了更多的问题。我已联系YAF的业主,看看他们能否帮助我。 – 2010-08-02 07:11:22