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
60
The type 'Infragistics.WebUI.UltraWebGrid.UltraWebGrid' exists in both "..." and "..."
posted

I just created a new web project and after I add the infragistics into the project, I got the error as:

 

Error    3    The type 'Infragistics.WebUI.UltraWebGrid.UltraWebGrid' exists in both 'c:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2009.1\ASP.NET\CLR3.5\Bin\Infragistics35.WebUI.UltraWebGrid.v9.1.dll' and 'c:\Windows\assembly\GAC_MSIL\Infragistics2.WebUI.UltraWebGrid.v9.1\9.1.20091.1015__7dd5c3163f2cd0cb\Infragistics2.WebUI.UltraWebGrid.v9.1.dll'    ....

 

Here is my web.config:


        <add assembly="Infragistics2.WebUI.UltraWebGrid.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>
        <add assembly="Infragistics2.WebUI.Shared.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>

 

in default.aspx:


<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>

In references folder, I have all needed .dlls ....

In the properties folder, there is a license file as:

Infragistics.WebUI.UltraWebGrid.UltraWebGrid, Infragistics2.WebUI.UltraWebGrid.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb

I am not sure, I am missing something.   Searching through this forum, there are several similar cases but I still could not figure out the solution.

 

Please help.

Bests

le9569

Parents
  • 45049
    Verified Answer
    posted

    le9569,

    You have both our CLR 2.0 assemblies ("Infragistics2") and CLR 3.5 assemblies ("Infragistics35") referenced.  You should reference one or the other, not both.

    Since your Register tags refer to our CLR 2.0 assemblies, you should remove or update all references to our CLR 3.5 assemblies.

    Given what you've quoted from your web.config file, it's possible that you may have a copy of Infragistics35.WebUI.UltraWebGrid.v9.1.dll in the bin of your website, or listed in your licenses.licx file.

Reply Children
No Data