Server Error- Could not load file or assembly 'log4net, Version=1.2.10.0'

23,757

This is most likely a duplicate of several similar questions, amongst which the consensus seems to be making sure that the installer for the correct target platform (x86 vs x64) is used.

See the following for more detail:

Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'

Log4net.dll + C# + Crystal Reports = error

Crystal Reports error when deployed..Could not load file or assembly 'log4net

Share:
23,757
Admin
Author by

Admin

Updated on July 09, 2022

Comments

  • Admin
    Admin almost 2 years

    I am trying to generate a crystal report on a website that i created using visual studio 2012. I installed the Support Pack 8 Executable from this site: http://scn.sap.com/docs/DOC-7824 and integrted Crysital reports with my visual studio. I am able to generate the report on my computer, but when i moved my website to a different server I get an error. Initially i had errors about different .dll's missing, but after adding them it fixed the problem. I could not however get passed this one error:

    Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I found this log4net.dll on my computer and added it to my website on the server, but i can not get passed this error. it is a Windows 2008 Server running IIS 7. I am using ASP.net 4.0.

    Is there a reference that i need to Thanks in advance.