(Can\'t believe this hasn\'t already been asked, but I can\'t find a dup)
In Visual Studio with lots of projects, when I first open the solution, I sometime
I had the same error, I tried some solutions above but nothing worked for me, then I removed the content of the value tag of the data tag of my property in resx file
.
For example if the property witch produce the error is MyProp
in a MyUserControl
user control, you will find in resx file
a data tag with the name MyUserControl.MyProp
, remove the content of it's value tag.
The Types indicated may have same name, same namespace, and same Assembly (DLL) but on different versions or location.
You may try the following code on those two objects you are referring to define the location of their assemblies.
SampleObject.GetType().Assembly.CodeBase