Search code examples
c#visual-studio-2010exceladd-inribbon

When running a Excel add-in, I always get a error, if my previous run ended in a breakpoint


I'm making a Ribbon add-in for the first time.

Sometimes I get this error/warning, when I run and start Excel from my VS10.

"Excel experienced a serious problem with the 'exceladdin1' add-in. If you have seen this message multiple times, you should disable this add-in and check to see if an update is available. Do you want to disable this add-in?" (I always answer no, but it's still pretty annoying)

The last couple of days I thought I got it somekind of randomly, but I did so ekstra tests before writing this question.

What I found was that I'll always get the error/warning, if my previous run hit a breakpoint. I found it very strange, and it should't be like this right. Have anyone found a way to fix this?


Solution

  • you should get this message if you stop your debug session from within Visual Studio instead of closing excel. By stopping the session from VS, you kill excel, excel notices this upon next start and can even confirm that at the time your addin was running, therefore it recommends disabling it.