2014-03-14 115 views
0

Server Error in '/' Application. Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.错误:无法加载文件或程序集'log4net,版本= 1.2.10.0

它运行在我的本地pc上,但是当上传到服务器时,它们会导致错误。

+1

log4net的是一个记录应用程序。您的程序正在尝试运行它。你已经安装了它,它可能在你的bin目录中,但它不在服务器上。在那里复制。 – paqogomez

+0

log4net dll具有强大的名称,您必须使用与应用程序在编译时需要的版本相同的dll版本。 – linquize

+0

paqogomez什么都可以安装到敌我log4net的DLL – user3418604

回答

1

确保你有log4net dll在你的bin文件夹中。

+0

我知道这个,但我找不到这个DLL'log4net,版本= 1.2.10.0请。发送链接ti下载这个DLL – user3418604

+0

@ user3418604:尝试修改您的配置与您的版本的log4net DLL。 – csLijo

+0

@ csLijo但如果我发现这个DLL – user3418604

0

如果您使用的是32bit log4net dll,那么您将需要enable APP pool of your IIS to run in 32bit mode

enter image description here

+0

不,我使用的是64位 – user3418604

+0

@ user3418604然后确保**启用32位应用程序**属性​​设置为** false ** – Kurubaran

相关问题