The file or assembly System.ComponentModel.Annotations version=4.2.0.0 The found assemblys manifestdefination is not equal to assemblyes reference[Answered]RSS
Hi
I get the above error and I don't know what to do. I have went through a lot of pages, but nothing seams to get rid of the error. The error doesn't show up on compile time. I have 10-15 times reinstalled the nuget in both projects.
It's first after I made a new project (Businesslayer) the error came.
I have checked the System.ComponentModel version and also System.ComponentModel.Annotations and both is the same what I installed in the Nuget manager.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
9 Points
20 Posts
The file or assembly System.ComponentModel.Annotations version=4.2.0.0 The found assemblys manife...
Feb 02, 2021 05:59 PM|SimsenVejle|LINK
Hi
I get the above error and I don't know what to do. I have went through a lot of pages, but nothing seams to get rid of the error. The error doesn't show up on compile time. I have 10-15 times reinstalled the nuget in both projects.
It's first after I made a new project (Businesslayer) the error came.
The error come here
I have checked the System.ComponentModel version and also System.ComponentModel.Annotations and both is the same what I installed in the Nuget manager.
The BusinessLayer project look like this
I hope some of you can help me. I do not know what to do :-)
Best regards
SimsenVejle
Member
9 Points
20 Posts
Re: The file or assembly System.ComponentModel.Annotations version=4.2.0.0 The found assemblys ma...
Feb 02, 2021 07:44 PM|SimsenVejle|LINK
I don't know if that helps you telling me what I have to do.
I remove the System.ComponentModel.Annotations from my project in both projects. Then I go into Nuget Manager and install the latest stabel 5.0.0.
Then when look in my object browser I can see 2 System.ComponentModel.Annotations first 4.2.0.0 and then 4.2.1.0.
I have tried to remove the bin folder - then I right click on the System.ComponentModel.Annotations.dll file an the fileversion sais 4.6.26515.6
I'm confused
Contributor
2770 Points
789 Posts
Re: The file or assembly System.ComponentModel.Annotations version=4.2.0.0 The found assemblys ma...
Feb 03, 2021 07:20 AM|YihuiSun|LINK
Hi SimsenVejle,
You can try bindingRedirect to redirect one assembly version to another.
You can click this link to see a more detailed explanation.
Best Regards,
YihuiSun
Member
9 Points
20 Posts
Re: The file or assembly System.ComponentModel.Annotations version=4.2.0.0 The found assemblys ma...
Feb 03, 2021 01:56 PM|SimsenVejle|LINK
Thank you very much
best regards
SimsenVejle