Code generation for property ‘Image’ failed
The Problem
After finally making the jump from Visual Studio 2008 to Visual Studio 2010, a project using Infragistics NetAdvantage 2008.3 started throwing the “Code generation for property ‘Image’ failed” error in Visual Studio 2010.
The NetAdvantage incompatibility with Visual Studio 2010 appears to be related to Windows Forms and making any changes to the image of the form.
The Fix
Infragistics has reported an error in some versions of it’s product with Visual Studio 2010. It appears that NetAdvantage 2008 is not fully compatible and no patch has been provided. Luckily I still had an upgrade for NetAdvantage 2009.1, of which after being patched / updated to the latest build works. The standard install of Infragistics 2009.1 or 2009.2 does not work and must be patched / updated. Check with Infragistics or download the patch directly from them from your downloads area.
Compatibility
NetAdvantage WinForms compatibility with Visual Studio 2010
- NetAdvantage 2008.x and previous versions – Not fully compatible, see error above
- NetAdvantage 2009.1 Unpatched - Not fully compatible, see error above
- NetAdvantage 2009.1 Patched to 9.1 2094 – Compatible, fixes above error
- NetAdvantage 2009.2 Unpatched - Not fully compatible, see error above
- NetAdvantage 2009.2 Patched to 9.2 2083 - Compatible, fixes above error
- > NetAdvantage 2009.2 – Compatible
Credits
Original credit for solving this goes back to an Infragistics employee in their forums:
http://blogs.infragistics.com/forums/t/41560.aspx?PageIndex=2
I’ve tested their solution with my project and reflected the results above. As always, back up your solution before making changes!
