Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
controls in two different folders
posted

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.

Parents
No Data
Reply
  • 22852
    Verified Answer
    Offline posted

    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.

Children