Exception at load time in Add-In in Visual Studio 2005

Hi There,

I am facing problem in loading the installed add in Visual Studio 2005. I am getting below exception message when I start Visual Studio 2005.


Microsoft Visual Studio

The Add-in '<ADD IN NAME>' failed to load or caused an exception.
Would you like to remove this Add-in?
If you choose yes, the file it was loaded from, '<PATH OF THE .ADDIN FILE>', will be renamed.

Error Message: <Unknown Error>
Error number: 80131604

Yes No

It means that Add-In dll is not getting loaded.

What causes the problem ? I checked and tried to modify .AddIn file, Assembly versioning and VS 2005 add in settings. But all in vain.

Please help if anybody has faced this issue earlier.

Thanks
Prakash

[1325 byte] By [PrakashRaval] at [2008-1-9]
# 1

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

CraigSkibo-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified