Excel DNA stopped working error message

Mar 26, 2013 at 9:21 AM
I am a newbie to Excel DNA. Everytime when I try to compile my project I am getting a message box with a progress bar saying thet excel dna has stopper working. This is quite annoying because I cant create build scripts also because while compile project directly using MSbuild also showing the same error. Though this mesage box is not throwing any error but not telling what's the issue.

Please refer Issue for screenshot.
Thanks,
Dev
Coordinator
Mar 27, 2013 at 9:33 AM
Hi,

You're getting an error from the ExcelDnaPack.exe utility. It has no error checking, so you really want to see the exception that it writes back to the console, rather than the unhelpful message from the post-build step.

I suggest you invoke ExcelDnaPack.exe from a console window (check the post-build step for the command-line). One reason you might get an error is if you are trying to pack a mixed on unmanaged assembly - these can't be packed. I think errors in the .dna file would also cause problems, though in that case I'd expect the add-in itself not to work either.

-Govert