Cannot register assembly... could not load file or assembly ExcelDna.Integration

540 views
Skip to first unread message

Stivz

unread,
Apr 7, 2017, 2:39:42 PM4/7/17
to Excel-DNA
I have a strange Assembly error that's really annoying...

I can start my add-in from Visual Studio and do step-by-step debugging no problem. Then if I stop debugging or close Excel and then make a code change, I cannot run it again without shutting Visual Studio down and re-opening the solution. After a code change, I get the following error when I try to launch it again:


Error 1 Cannot register assembly "C:\Users\me\documents\visual studio 2013\Projects\TaxUDFs\bin\Debug\TaxUDFs.dll". Could not load file or assembly 'ExcelDna.Integration, Version=0.33.5730.40390, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Le fichier spécifié est introuvable. TaxUDFs.

I can work around it by closing and re-opening Visual Studio, but you'll understand that's really annoying...<

Thanks in advance!
Stivz

Govert van Drimmelen

unread,
Apr 7, 2017, 3:07:39 PM4/7/17
to exce...@googlegroups.com
You should check that your project does not mistakenly have the "Register for COM Interop" option set.

-Govert


From: exce...@googlegroups.com [exce...@googlegroups.com] on behalf of Stivz [steve...@hotmail.com]
Sent: 07 April 2017 08:15 PM
To: Excel-DNA
Subject: [ExcelDna] Cannot register assembly... could not load file or assembly ExcelDna.Integration

--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.

Stivz

unread,
Apr 10, 2017, 8:46:39 AM4/10/17
to Excel-DNA
It did have the option set, and removing it solved the issue. Awesome!

Thanks for the prompt and helpful response, Govert!
To post to this group, send email to exc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages