How to debug .Net Class Libraries being called from Excel VBA
Posted on 2014-04-15
I have two .Net projects within a solution that have their Output Type as "Class Library".
I've run into a situation where one of these is failing when a method within the .Net class is called from Excel VBA.
I have the project properties for these two .Net solution both enabled for Register for COM-Interop. I am able to load both References in Excel VBA by selecting the .tlb files. I used REGASM from the command prompt on both .dll files just in case and they were registered successfully.
I need to debug this on the client machine, but without being able to step into the .Net code, I have no idea why it's failing, it's some type of run-time error, but I don't have a screenshot at this point.
I need to be able to debug the .Net Class Library on the client's machine from Excel VBA in order to step into the code. These .Net Class Libraries are set as 2.0 .Net Framework.
How would you accomplish this?