Exception at load time in Add-In in Visual Studio 2005
| |||||
| |||||
There are a number of reasons for an Add-in to not load. The assembly or a dependant assembly could not be found. The code generated an exception that was not handled during startup, so we abandoned trying to load it. The XML is malformed, etc.
For this particular message, the error code 80131604 corresponds to this:
//
// MessageText:
//
// If the method called throws an exception
//
#define COR_E_TARGETINVOCATION EMAKEHR(0x1604L)
which translates into the TargetInvocationException exception from .NET. You should open the Exceptions dialog (Debug|Exception) and set both check boxes next to Common Language Runtime Exceptions, then start your Add-in under the debugger to see where the exception is being thrown.
Craig