Skip to Content
0
Former Member
Nov 30, 2010 at 10:59 AM

Could not load file or assembly 'log4net' or one of its dependencies. An at

2207 Views

Hi guys,

Yesterday I downloaded the CR release for VS2010. Before this I was using the Beta (and later Beta2) version. Both worked fine. I first uninstalled the beta version, next I installed the release version. No problems with installing. But now I'm trying to use CR. I get the error:

"Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.".

I noticed that it has something to do with the runtime enviroment. If I set the project's platform target to x86, it works fine. Turning it back to 'any CPU' or x64, it results in that error. (I'm using w7 x64).

I did install the the x64 runtime (CRRuntime_64bit_13_0.msi, also asked at the end of the installation).

Any ideas how to solve this?

Why is CR using log4net anyway?

Best,

Danny