Yes - this is exactly the behavior that you get when the .xll add-in has the wrong bit for the Excel process. For Excel-DNA, you need to use a copy of ExcelDna.xll for 32-bit versions of Excel (runs on 32-bit or 64-bit versions of Windows) and a copy of ExcelDna64.xll for 64-bit versions of Excel 2010.
Note that on all versions of Windows (both 32-bit and 64-bit), the recommended and standard installation of Office is the 32-bit version.
source share