In the development of .NET, a confusing error often encountered: "The definition of a list in the assembly is not matched with the program set reference." This error indicates that the assembly referenced in the code is inconsistent with the assembly of the assembly in the .NET program set loader.
Analysis of the cause of error
To understand this error, the key is to understand the operating mechanism of the assembly loader. When a class calls a class, the loader searches the assembly its references. If you find the matching item, continue to execute. However, if the clusters found and referenced (in terms of version, regional or public key token) do not match, the above errors will be triggered.
Tracking differences
In order to find out the reason that causes unsatising, please check the reference in the project. Make sure the referenced program version matches the program set version on the system. If there is still no matching, check any reference to the concentrated items or procedures. Problem solution
To solve this problem, consider the following measures:
Correcting the reference of the assembly:
ensure that the program set reference in the project is consistent with the correct assembly on the system.Add to GAC:
The above is the detailed content of Why Does My .NET Application Throw a 'Located Assembly's Manifest Definition Does Not Match the Assembly Reference' Error?. For more information, please follow other related articles on the PHP Chinese website!