I'm working on an add-in for Visual Studio 2005 in C#, and while everything works if I launch it from the debugger, actually installing it (adding the .addin and .dll to the add-ins directory) results in it not working. When Visual Studio loads it, I get the error "The Add-in "MyAddin" failed to load or caused an exception." With Error Message: Unspecified error, with error number: 80004005, and then offers me the ability to disable it.
From here, I can't figure out how to debug that load process in order to figure out what's going on. I can't seem to attach to the dll before it's loaded, or specifically launch the dll in a fashion that causes it to load in the same fashion. I also can't attach when the error message is up.
How on earth do I do this?
Edit: I'm starting to believe this isn't a problem with my code so much as the .addin file. Given that I can't break the code in the constructor, and the MyAddin - For Testing.addin works, perhaps it is a larger issue with the generated MyAddin.addin file.