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
125
WorksheetCell' is ambiguous in the namespace 'Infragistics.Documents.Excel
posted

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


  • 10685
    Offline posted

    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.