简体   繁体   中英

Quartz.net - Could not load file or assembly Common.Logging Version=3.0.0.0

Im using Quartz.net in my project, and suddenly I get this exception :

Could not load file or assembly 'Common.Logging, Version=3.0.0.0...

I have no idea why it poped, everything was just fine, and the quartz worked, And suddenly it didn't. Why?

This typically happens when you ad a reference to a new assembly that also uses Common.Logging, but a different version. When the project build it picks up the incorrect version and then starts to complain as Quartz.net is bound to a particular version.

One fix for this is to do a bindindRedirect in the app.config.

因此,几个小时后,我用完全相同的代码打开了另一个项目,我发现由于某种原因,石英在重建项目后创建了Common.Logging dll,并且由于某种原因,它没有没有在我的原始项目中创建它,所以我只复制了dll。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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