J
John Frandolig
Hello,
I have an Excel add-in Developed with VSTO in VS 2005, and it works fine on
many machines with either Excel 2003 or Excel 2007 loaded, (because it is
designed only to use 2003 features, and is linked with the 2003 PIA's)
I have a customer of this Addin, that has encountered the following error on
one machine, This machine has Office 2007, and when My addin Initializes, it
trys to add itself to the Application Commandbars collection, and fails with
this exception:
==========
Error Message:
Method not found: 'Microsoft.Office.Core.CommandBars
Microsoft.Office.Interop.Excel._Application.get_CommandBars()'.
Error Source:
Datacuity.AnyViewIDS.Excel2003AddIn
Error Details:
System.MissingMethodException: Method not found:
'Microsoft.Office.Core.CommandBars
Microsoft.Office.Interop.Excel._Application.get_CommandBars()'.
at Excel2003AddIn.ThisAddIn.CreateToolbar()
at Excel2003AddIn.ThisAddIn.ThisAddIn_Startup(Object sender, EventArgs e)
=======
I had the customer check that the Microsoft.Office.Interop.Excel Assembly
was present (version 12 in the gac, with a version 11 publisher policy file
that re-directs to 12),
and had him check the version of office.dll version 12 in the GAC. and all
looks ok, same as on my working machine.
Since I didn't originally develop this addin, just support it, (but I have
the source project), there are many things I don't completely understand:
Its a basic question, but can someone tell me where this get_CommandBars()
Method mentioned is supposed to live, and how to tell where my addin code is
actually looking for it ?
Has anyone else ever seen a similar error when running a VSTO add-in ? In
office 2007 ?
Thanks for any thoughts or comments,
John F
I have an Excel add-in Developed with VSTO in VS 2005, and it works fine on
many machines with either Excel 2003 or Excel 2007 loaded, (because it is
designed only to use 2003 features, and is linked with the 2003 PIA's)
I have a customer of this Addin, that has encountered the following error on
one machine, This machine has Office 2007, and when My addin Initializes, it
trys to add itself to the Application Commandbars collection, and fails with
this exception:
==========
Error Message:
Method not found: 'Microsoft.Office.Core.CommandBars
Microsoft.Office.Interop.Excel._Application.get_CommandBars()'.
Error Source:
Datacuity.AnyViewIDS.Excel2003AddIn
Error Details:
System.MissingMethodException: Method not found:
'Microsoft.Office.Core.CommandBars
Microsoft.Office.Interop.Excel._Application.get_CommandBars()'.
at Excel2003AddIn.ThisAddIn.CreateToolbar()
at Excel2003AddIn.ThisAddIn.ThisAddIn_Startup(Object sender, EventArgs e)
=======
I had the customer check that the Microsoft.Office.Interop.Excel Assembly
was present (version 12 in the gac, with a version 11 publisher policy file
that re-directs to 12),
and had him check the version of office.dll version 12 in the GAC. and all
looks ok, same as on my working machine.
Since I didn't originally develop this addin, just support it, (but I have
the source project), there are many things I don't completely understand:
Its a basic question, but can someone tell me where this get_CommandBars()
Method mentioned is supposed to live, and how to tell where my addin code is
actually looking for it ?
Has anyone else ever seen a similar error when running a VSTO add-in ? In
office 2007 ?
Thanks for any thoughts or comments,
John F