Skip to content

ComServer Example - Can't add a reference to the specified file #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ExcelUser242 opened this issue May 14, 2021 · 1 comment
Open

Comments

@ExcelUser242
Copy link

I'm trying to run the sample ComServer in the Excel-Dna Samples but cannot add a reference to the ComServer.dll - ComServer link

The VBA project references show MISSING:ComServer but when I remove the missing reference and link to the newly build it gives error

Can't add a reference to the specified file

I've tried building with Any CPU and x64 with no luck and have tried all of the ExcelDna versions 1.0.0 onwards . Any ideas how to solve this?

Target Framework: .NET 4.7.2
Excel Version: Excel 2016 (16.0.5056.1000) MSO (16.0.5056.1000) 64-bit
<package id="ExcelDna.AddIn" version="1.2.5-preview" targetFramework="net472" developmentDependency="true" />
<package id="ExcelDna.Integration" version="1.2.5-preview" targetFramework="net472" />

Untitled1
Untitled2

@govert
Copy link
Member

govert commented May 14, 2021

@ExcelUser242
I think building the COM Server stuff is not so straight-forward yet.
But the write-up I tried in the "DnaComServer" one is better than the first ComServer example that I think you're trying here.
So check this one for a start: https://github.com/Excel-DNA/Samples/tree/master/DnaComServer
You might still need to edit some paths to make it work though, and there might still be problems if I remember from here: Excel-DNA/Samples#11

Sorry - I can't remember the history of the two projects, and it needs to be cleaned up a bit.
If it's urgent, you're welcome to contact me directly to arrange for an online support session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants