繁体   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