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.

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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,554 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,097 questions
{count} votes

2 answers

Sort by: Newest
  1. 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

  2. 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

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.