I have loaded infragistics 2012.1 and it has put a clr2 and a clr4 folder on my c: drive. Now when I place a control onto my form from the toolbox the following error occurs:
Error 173 The type 'Infragistics.Win.IUIElementCreationFilter' exists in both 'c:\Program Files\Infragistics\NetAdvantage 2012.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.v12.1.dll' and 'c:\Program Files\Infragistics\NetAdvantage 2012.1\Windows Forms\CLR2.0\Bin\Infragistics2.Win.v12.1.dll'
What do I need to do to fix this.
Thanks. Have a wonderful sunshiny day
If you are targeting .NET 3.5 or earlier then you would need to use the 2.0 assemblies as 4.0 assemblies wouldn't work. If you are on .NET 4.0 it doesn't matter as both will work though I would recommend using the 4.0 assemblies.
Thank for such a quick response. does it matter which reference is used? clr2 or clr4
Most likely this happened if you dragged a control from the toolbox of the CLR group that you are not already using in your application.
To resolve this, look at the references for your project and make sure that you are only referencing the CLR 2.0 or CLR 4.0 assemblies. The error that you are getting is because both versions of the Win assembly is referenced. Removing one of the references will resolve the issue and this will need to be done for each duplicate.
After resolving the duplicates if you still have assemblies that reference CLR 2 and CLR 4, you will need to remove one of them and add the corresponding reference for the other CLR version until all assemblies are for one CLR version.
Let me know if you have any questions with this matter.