Debugging Excel Addin

G

Guru

Hi,



I am stuck with a very weird problem. My excel addin is developed in c#
(.net 1.1).

I have also installed the addin on my machine and it works fine. But when i
try to debug the excel addin, it refers the dlls in the deployed path
(C:\ProgramFiles\..) and not the dlls in my working directory.

When i hit F5 on VS.NET IDE, excel is launched and the add-in opens up, but
none of my breakpoints are hit and i get a "The breakpoint will not currently
be hit.None of the symbols are loaded.." error. This is because the dlls
refered are not from project location.

I have tried debugging after uninstalling the addin, but it dint help. i
also tried attaching the excel process, but in vain.

Please help me sort this out. i have already wasted almost a day on this.



-Guru
 
F

Frank Sharp

In the registry:
HKEY_CURRENT_USER/Software/Microsoft/Office/Excel/Addins/YourAddInName
If you're using VSTO you could try to change the path to the manifest file.
But I guess you are using a ComShim.
In this case you will have to recompile the Shim Project. (Try to delete the
registry entry first)
 
G

Guru

Thanks for your input Frank, but that did not help. when i delete the
Registry entries and hit F5, the buttons of my Add-in dont come up on the
excel. I had to install my add-in again. i even tried recompiling the ComShim
project, but alas !
 
G

Guru

It works. After i recompiled the ComShim project, it is working like a charm.
Thanks Frank.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top