2010-08-01 21 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