簡體   English   中英

log4net問題-IIS8 Windows Server 2012上的Orchard

[英]log4net issue - Orchard on IIS8 Windows Server 2012

我正在使用IIS8將Orchard CMS部署到Azure VM(Windows Server 2012)上

我收到此錯誤:

Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of its dependencies. The system cannot find the file specified. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of its dependencies. The system cannot find the file specified.

我怎樣才能解決這個問題? :(

更新

我嘗試了Orchard 1.7的新副本,但遇到了這個問題:/

1)檢查是否已部署包含所有果園額外資源的“ lib”文件夾。 它應該具有一系列資源,例如autofac,Castle Windor等以及log4net。 如果在1.7副本的路徑中找不到此文件夾,則可能是問題所在。

2)Orchard不使用nuget軟件包,而是使用此lib文件夾(我相信它們具有多個軟件包的自定義版本)。 如果您獲得1.7的源代碼版本,則在構建時應該已經存在此庫。 簽入VS以確保對log4net的引用指向存在的位置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM