Hi all,
I have the following problem with using attribute. I declared an attribute class (MyAttribute) with a list of properties. That attribute class is in its own dll. Now I have another class (MyClass) that referenced this attribute class.
Everything works fine. But now, I want to add additional properties to the attribute class (MyAttribute). It seems that any new property I added to (MyAttribute) is not recognized by (MyClass). Another test I did was simply adding the new property to (MyAttribute) and use reflection in (MyClass) to simply list out all the attribute property, even that errors out. For some reason, it seems that once i declare an attribute class, I can't add or change it. If I add or change anything, the program that referenced this attribute class will not run.
Everything compiles fine and I checked to make sure the .dll is referenced correctly. Furthermore, even the VS 2005 intellisense recognized the new property is there. But during actual run-time, my program will error out stating it cannot find the new property that I added in (MyAttribute). Does anyone have a solution to this problem or know what causes this problem
Thanks ahead for your help,
David

Attribute Problem
Radvis
Thanks for the reply. I didn't install the old version, but somehow the dependency was link incorrectly in my solution. I solve the problem after linking the project dependency correctly. Thanks for the reply.
David
Robertino
Sounds like an older version of the attribute assembly is getting loaded at runtime. You didn't install the old version in the GAC, did you