Home > Backend Development > C++ > Why Does My .NET Assembly Reference Mismatch Occur, and How Can I Fix It?

Why Does My .NET Assembly Reference Mismatch Occur, and How Can I Fix It?

Patricia Arquette
Release: 2025-01-30 23:46:09
Original
205 people have browsed it

Why Does My .NET Assembly Reference Mismatch Occur, and How Can I Fix It?

.NET program set quoting non -matched errors: "The list definition of the found set of the assembly is not matched with the program set reference"

.NET framework encountered a problem, and the program set version that could not coordinate the request and the version it could find. The error message indicates the assembly set loader:

The referenced version cannot be found "1.2.0.203".

    On the contrary, it found a assembly of "1.2.0.200".
  • The difference between the
  • The request's assembly and the found assembly causes the "list definition of the assembly to not match the program set reference".
Solution:

To solve this problem, ensure that the request's assembly set ("1.2.0.203") can be used for the use of the assembly set loader. Place the program set in one of the following positions:

The global assembly cache (GAC)

Application path
  • Other failure exclusion:

"GACUTIL/I" PATH/To/Assembly.dll "" command adds the program set to GAC. Please refer to Microsoft's documents to obtain more guidance:

https://www.php.cn/link/dc5631bb775757e5ae1e430034ad1a21
    .
  • By following these steps, you can solve the difference in the references of the assembly and make the unit test successfully run.

The above is the detailed content of Why Does My .NET Assembly Reference Mismatch Occur, and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template