Add-in exception in outlook 2000

Add-in Express™ Support Service
That's what is more important than anything else

Add-in exception in outlook 2000
Unexpected exception after registering ADX project and starting outloo 
peter maddin




Posts: 28
Joined: 2008-08-26
Just got Add-In Express and installed it into VS2008. Just started learning today.
I am missing the Demo Projects and Docs\Samples as per page 16 of the documentaton. I noticed in the README.TXT that these folders are missing.

Anyway downloaded myoutlookaddin1vs2005cs.zip, unzipped, did a build and then did a register ADX product.

When I start up outlook 2000 I get an exception :o

Detailed technical information follows:
---
(Inner Exception)
Date and Time: 16/09/2008 10:51:50 AM
Machine Name: PCP19006
IP Address: 10.0.0.246
Current User: BIOLOGY\he00273

Application Domain: C:\Add-in Express Examples\myaddin1vs2005cs\MyAddin1\bin\Debug\
Assembly Codebase: file:///C:/WINDOWS/assembly/GAC_MSIL/AddinExpress.MSO.2005/4.3.1910.2005__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name: AddinExpress.MSO.2005, Version=4.3.1910.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.3.1910.2005
Assembly Build Date: 25/03/2005 1:06:50 AM

Exception Source: mscorlib
Exception Type: System.ArgumentOutOfRangeException
Exception Message: Index and length must refer to a location within the string.
Parameter name: length
Exception Target Site: InternalSubStringWithChecks

---- Stack Trace ----
System.String.InternalSubStringWithChecks(startIndex As Int32, length As Int32, fAlwaysCopy As Boolean)
AddinExpress.MSO.2005.dll: N 0108 (0x6C) IL
System.String.Substring(startIndex As Int32, length As Int32)
AddinExpress.MSO.2005.dll: N 0000 (0x0) IL
MyAddin1.AddinModule.AddinModule_AddinStartupComplete(sender As Object, e As EventArgs)
AddinModule.cs: line 0442, col 13, IL 0020 (0x14)
AddinExpress.MSO.ADXAddinModule.Extensibility.IDTExtensibility2.OnStartupComplete(custom As Array&)
AddinExpress.MSO.2005.dll: N 1025 (0x401) IL



(Outer Exception)
Date and Time: 16/09/2008 10:51:50 AM
Machine Name: PCP19006
IP Address: 10.0.0.246
Current User: BIOLOGY\he00273

Application Domain: C:\Add-in Express Examples\myaddin1vs2005cs\MyAddin1\bin\Debug\
Assembly Codebase: file:///C:/WINDOWS/assembly/GAC_MSIL/AddinExpress.MSO.2005/4.3.1910.2005__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name: AddinExpress.MSO.2005, Version=4.3.1910.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.3.1910.2005
Assembly Build Date: 25/03/2005 1:06:50 AM

Exception Source:
Exception Type: AddinExpress.MSO.ADXExternalException
Exception Message: An error has occured in the code of the add-in.
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----


I click om OK to continue. The added button appears to work ok. How do I get rid of the exception?

I attached to outlook in Vs2008 (it prompts for account, domain, password at present) so I attached then to debug. I do not get an exception when I am attached. :!:

Not the kind of thing I want users to see first off. :(

Posted 16 Sep, 2008 00:15:34 Top
Eugene Astafiev


Guest


Hello Peter,

We will publish sample projects on our web site soon. Thank you for pointing me to this.

Did you replace the adxloader.dll in the Loader folder with a new one from the Redistributables folder which is located in the Add-in Express package?

You may try use the WriteLine method of the System.Diagnostics.Debug class to debug the add-in.
Posted 16 Sep, 2008 05:19:56 Top
peter maddin




Posts: 28
Joined: 2008-08-26
Eugene Astafiev wrote:
Did you replace the adxloader.dll in the Loader folder with a new one from the Redistributables folder which is located in the Add-in Express package?


F5 (refresh) worked (obviously I was viewing a cached instance)
That fixed it.
Thanks. :D

Posted 17 Sep, 2008 22:05:51 Top
Eugene Astafiev


Guest


Good news!

You are welcome, Peter.
Posted 18 Sep, 2008 06:42:36 Top