Hi Team,
Getting ambiguous in the namespace error in my my web project .Using Infragistics 14.1 controls.What i am doing wrong here.
Have reference to Infragistics4.WebUI.Documents.Excel.v14.1 and Infragistics.Documents.Excel in my project.
I created some common functions in App_code folder sot that be used across all pages in and referenced Infragistics.Documents.Excel to write a function that takes argument as below
Public Shared Sub MergeExcelCells(ByVal wrkSheet As Worksheet, ByVal columnToMerge As Integer, ByVal startRow As Integer, ByVal maxRow As Integer)
End Sub
Thanks & Regards
Rajeev G
Hello RAJEEV,Thank you for posting in our community!
In general, this error means that you have included more than one version of the assembly into your project and the compiler cannot decide which assembly to use. You have to use the same version everywhere.
I suggest you to look at the references in your project in Visual Studio. It's possible your project is referencing assemblies from the GAC and not copying them to the bin folder.
Hi Ivaylo,
Even i thought the same.But Its happening from out build machine(jenkin) where Infragistics is not installed.I have included all my required infragistics dll in Bin folder of the website.
So thats way its not getting from GAC.
Did you compared the referenced versions to the ones in the bin folder? Is there only one version of dll files in the Bin folder? I suggest you to double check on those as well.
Hi Checked,
I have placed these two dll' in bin folder
Infragistics4.Documents.Excel.v14.1.dll .This is referred one project that and made it as an assembly this custom dll is referred in web site .
Infragistics4.WebUI.Documents.Excel.v14.1.dll.This is referred in Web Site and this site also referring the above assembly so added Infragistics4.Documents.Excel.v14.1.dll in bin folder
It is important to check the specific version specified. For example, the RTM for 14.2 is Web.Nightly_14.2.20142.1028. So it is important to have the exact full version matching everywhere it is referenced trough the project, to the dll files in the bin folder.
Please let me know if you have checked all of the above and what is the actual version you are using.
Its got worked when i removed Infragistics4.Documents.Excel.v14.1.dll from the bin folder .
I think Infragistics4.WebUI.Documents.Excel.v14.1.dll's based out of Infragistics4.Documents.Excel.v14.1.dll. That was making confusion for the compiler.