How to fix 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.

Waterman, Tyrique 0 Reputation points
2023-02-13T16:44:30.9733333+00:00

Using VB 2022 and I have this issue that I can not get resolved.

using .net framework 4.8 and I tried using x64, x86 and nothing has worked

User's image

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. thusitha Jayawickrama 0 Reputation points
    2025-05-16T11:31:40.33+00:00

    I had the same problem and I removed all the crystal report references and saved the project. Then added the reference back and it worked for me.

    0 comments No comments

  2. Amarjit Singh 0 Reputation points
    2025-06-18T07:45:35.01+00:00

    I had exactly same issue...tried almost everything...finally was able to solve this by updating my references in my project...removed all references to CrystalDecisions.* and added from "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet"

    and everything went back to normal, all working!

    I have Windows 11 x64. hope it helps someone else.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.