LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default compatibility issues w Excel 97-03 to 2007

Mitch -

All I learned from the messages you've attached is that we're not dealing
with VBA but instead it's VSTO. Generally knowing the line where the error
occurred and the precise error message are helpful. Your error dumps didn't
have this information. What I did get that was interesting was this:

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.


The first line is oh so (un)helpful, but the second is providing information
(though not specific) about the problem. Your coders have to make sure all
objects are properly declared and instantiated. This may be at the root of
the versioning problem.

If there's a problem between versions, it can usually be worked out by
finding an order of commands that universally satisfies the versions, or
occasionally using if/then to provide different code paths for different
versions. Much of my work of late is updating Excel VBA projects to be
compatible with Excel 2007, so I know it can readily be done. In VSTO
though, there are different interops for the different versions of Excel, so
maybe the coders are correct in their assessment.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"CoachMitch" wrote in message
...
I am bidding out the creation of several macros. The sample worksheets
are
all returning AddIn Exception errors.

After I click "Go" in the error dialog box, the macro will work.

The coders seem to think that they cannot make the macros completely
compatible across versions. This is an important aspect as my clients
usually
run Excel 97-03 and I am running Excel 2007.

None of the coders know how to overcome this issue. I am wondering if the
differing versions is the real issue or if it is an easy villian?

The project has stopped until this issue is resolved.

Thanks for any input.
Coach Mitch


----------------------------------------------------------

All 3 instances had the same error message although the details were a bit
different:

AddOm Ex[ress/<SP/ADXExce;Appevemts error The AddIn has filed an
exception.
Error occured in code of the setup MyAddIn1

Detailed technical information follows:
---
- 1st instance -

(Inner Exception)
Date and Time: 6/25/2008 3:54:08 AM
Machine Name: MITCHELL-571D94
IP Address: 192.168.1.3
Current User: MITCHELL-571D94\Mitchell Goldstein

Application Domain: C:\Documents and Settings\Mitchell
Goldstein\Application Data\azrajobs\setupMyAddin1Setup\
Assembly Codebase: file:///C:/Documents and Settings/Mitchell
Goldstein/Application
Data/azrajobs/setupMyAddin1Setup/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=4.0.1902.2005,
Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.0.1902.2005
Assembly Build Date: 3/17/2005 2:06:50 AM

Exception Source: Interop.Excel
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Invalid index. (Exception from HRESULT: 0x8002000B
(DISP_E_BADINDEX))
Exception Target Site: get__Default

---- Stack Trace ----

Excel.Sheets.get__Default(Index As Object)
AddinExpress.MSO.2005.DLL: N 00000 (0x0) JIT
setupMyAddin1.AddinModule.ExcelEvents_SheetActivat e(sender As Object,
hostObj As Object)
AddinExpress.MSO.2005.DLL: N 0013 (0xD) IL
AddinExpress.MSO.ADXExcelAppEvents.DoWorkbookActiv ate(workbook As
Object)
AddinExpress.MSO.2005.DLL: N 0008 (0x8) IL

(Outer Exception)
Date and Time: 6/25/2008 3:54:08 AM
Machine Name: MITCHELL-571D94
IP Address: 192.168.1.3
Current User: MITCHELL-571D94\Mitchell Goldstein

Application Domain: C:\Documents and Settings\Mitchell
Goldstein\Application Data\azrajobs\setupMyAddin1Setup\
Assembly Codebase: file:///C:/Documents and Settings/Mitchell
Goldstein/Application
Data/azrajobs/setupMyAddin1Setup/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=4.0.1902.2005,
Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.0.1902.2005
Assembly Build Date: 3/17/2005 2: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 ----

- 2nd instance -

Detailed technical information follows:
---
(Inner Exception)
Date and Time: 6/25/2008 3:57:01 AM
Machine Name: MITCHELL-571D94
IP Address: 192.168.1.3
Current User: MITCHELL-571D94\Mitchell Goldstein

Application Domain: C:\Documents and Settings\Mitchell
Goldstein\Application Data\azrajobs\setupMyAddin1Setup\
Assembly Codebase: file:///C:/Documents and Settings/Mitchell
Goldstein/Application
Data/azrajobs/setupMyAddin1Setup/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=4.0.1902.2005,
Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.0.1902.2005
Assembly Build Date: 3/17/2005 2:06:50 AM

Exception Source: Interop.Excel
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Invalid index. (Exception from HRESULT: 0x8002000B
(DISP_E_BADINDEX))
Exception Target Site: get__Default

---- Stack Trace ----
Excel.Sheets.get__Default(Index As Object)
AddinExpress.MSO.2005.DLL: N 00000 (0x0) JIT
setupMyAddin1.AddinModule.ExcelEvents_SheetActivat e(sender As Object,
hostObj As Object)
AddinExpress.MSO.2005.DLL: N 0013 (0xD) IL
AddinExpress.MSO.ADXExcelAppEvents.DoWorkbookActiv ate(workbook As
Object)
AddinExpress.MSO.2005.DLL: N 0008 (0x8) IL

(Outer Exception)
Date and Time: 6/25/2008 3:57:01 AM
Machine Name: MITCHELL-571D94
IP Address: 192.168.1.3
Current User: MITCHELL-571D94\Mitchell Goldstein

Application Domain: C:\Documents and Settings\Mitchell
Goldstein\Application Data\azrajobs\setupMyAddin1Setup\
Assembly Codebase: file:///C:/Documents and Settings/Mitchell
Goldstein/Application
Data/azrajobs/setupMyAddin1Setup/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=4.0.1902.2005,
Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.0.1902.2005
Assembly Build Date: 3/17/2005 2: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 ----

- 3rd instance -

:59:06 AM
Machine Name: MITCHELL-571D94
IP Address: 192.168.1.3
Current User: MITCHELL-571D94\Mitchell Goldstein

Application Domain: C:\Documents and Settings\Mitchell
Goldstein\Application Data\azrajobs\setupMyAddin1Setup\
Assembly Codebase: file:///C:/Documents and Settings/Mitchell
Goldstein/Application
Data/azrajobs/setupMyAddin1Setup/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=4.0.1902.2005,
Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.0.1902.2005
Assembly Build Date: 3/17/2005 2:06:50 AM

Exception Source: Interop.Excel
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Invalid index. (Exception from HRESULT: 0x8002000B
(DISP_E_BADINDEX))
Exception Target Site: get__Default

---- Stack Trace ----
Excel.Sheets.get__Default(Index As Object)
AddinExpress.MSO.2005.DLL: N 00000 (0x0) JIT
setupMyAddin1.AddinModule.ExcelEvents_SheetActivat e(sender As Object,
hostObj As Object)
AddinExpress.MSO.2005.DLL: N 0013 (0xD) IL
AddinExpress.MSO.ADXExcelAppEvents.DoWorkbookActiv ate(workbook As
Object)
AddinExpress.MSO.2005.DLL: N 0008 (0x8) IL

(Outer Exception)
Date and Time: 6/25/2008 3:59:06 AM
Machine Name: MITCHELL-571D94
IP Address: 192.168.1.3
Current User: MITCHELL-571D94\Mitchell Goldstein

Application Domain: C:\Documents and Settings\Mitchell
Goldstein\Application Data\azrajobs\setupMyAddin1Setup\
Assembly Codebase: file:///C:/Documents and Settings/Mitchell
Goldstein/Application
Data/azrajobs/setupMyAddin1Setup/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=4.0.1902.2005,
Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 4.0.1902.2005
Assembly Build Date: 3/17/2005 2: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 ----



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compatibility issues with MS 2003 & 2007? Roxy Excel Discussion (Misc queries) 1 May 6th 08 06:00 PM
Compatibility issues Bostjan[_2_] Excel Programming 1 January 25th 06 10:07 AM
Compatibility issues with macros (2000 vs. 2003)? Lori Smith Excel Discussion (Misc queries) 3 August 25th 05 08:10 PM
backward compatibility code issues Mark Kubicki Excel Programming 1 October 10th 03 07:37 PM
compatibility issues foreign versions Ron de Bruin Excel Programming 0 July 9th 03 04:37 PM


All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"