If you have this problem, you will find the references that look like below.
#Could not load file or assembly log4net code#
The code that throws this error is: Line 33: I still get the error where the manifest definition doesn't match the assembly reference. In response to answer, I have made the change to my web.config file. I've installed Crystal Reports 13.0.1 for 64bit (my machine is 64bit). I should mention that the website runs without issues on my development machine, but not when published to my server.
I've checked the obvious by downloading log4net 1.2.10 and trying out every dll in the download. But I have no clue which file that it, or where to find it.
#Could not load file or assembly log4net install#
My hypothesis is that if I install the requested version of log4net.dll, my problems will be solved. Then it throws the original error at the reportViewer tag, not the web.config. When I do that, my website runs perfectly, except for when a reportViewer object is initialized. It's easy enough to change the version and the public key token to match the file so that the assembly loads correctly. This error also occurs in the web.config file. The located assembly's manifest definition does not match the assembly reference. When I copy log4net.dll to the bin directory of my webapp, I get aĬould 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." This error is located in the web.config file. Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.