简体   繁体   English

log4net问题-IIS8 Windows Server 2012上的Orchard

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

I'm deploying Orchard CMS onto an Azure VM (Windows Server 2012) with IIS8 我正在使用IIS8将Orchard CMS部署到Azure VM(Windows Server 2012)上

I'm getting this error: 我收到此错误:

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.

How can I fix this? 我怎样才能解决这个问题? :( :(

UPDATE 更新

I tried a fresh copy of Orchard 1.7 and I get this issue :/ 我尝试了Orchard 1.7的新副本,但遇到了这个问题:/

1) Check that you have the "lib" folder deployed that contains all of orchards extra resources. 1)检查是否已部署包含所有果园额外资源的“ lib”文件夹。 It should have a series of resources such as autofac, Castle Windor etc, as well as log4net. 它应该具有一系列资源,例如autofac,Castle Windor等以及log4net。 If you can't find this folder at the route of your copy of 1.7 then that is probably the issue. 如果在1.7副本的路径中找不到此文件夹,则可能是问题所在。

2) Orchard does not use nuget packages, but instead uses this lib folder (I believe that they have custom versions of several of the packages). 2)Orchard不使用nuget软件包,而是使用此lib文件夹(我相信它们具有多个软件包的自定义版本)。 If you got the source code version of 1.7, then this lib should have been present when you built. 如果您获得1.7的源代码版本,则在构建时应该已经存在此库。 Check in VS to ensure that the references to log4net are point to a location that exists. 签入VS以确保对log4net的引用指向存在的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM