log4net问题 - IIS8 Windows Server 2012上的Orchard

时间:2013-08-09 19:43:33

标签: azure log4net orchardcms iis-8 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 个答案:

答案 0 :(得分:0)

1)检查您是否部署了包含所有果园额外资源的“lib”文件夹。它应该有一系列资源,如autofac,Castle Windor等,以及log4net。如果您在1.7副本的路径中找不到此文件夹,则可能是问题。

2)Orchard不使用nuget包,而是使用这个lib文件夹(我相信它们有几个包的自定义版本)。如果您的源代码版本为1.7,那么构建时应该存在此lib。检入VS以确保对log4net的引用指向存在的位置。