I'm trying to develop an AddIn for Excel 2007, and have a solution full of code that executes and debugs just fine on other people's machines. When I try and Start Debugging in Visual Studio on my machine though, Excel gives me an error when it loads my AddIn:
"An AddIn could not be found or located."
I then click on the Details button to see the stack trace:
Cannot access a disposed object.
************** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object.
at Microsoft.Office.Tools.SmartTagCollection.BeginInit()
at ExcelAddIn1.ThisAddIn.BeginInitialization() in C:\Documents and Settings\james.cox\My Documents\Visual Studio 2008\Projects\ExcelAddIn1\ExcelAddIn1\ThisAddIn.Designer.cs:line 129
at ExcelAddIn1.ThisAddIn.InitializeDataBindings() in C:\Documents and Settings\james.cox\My Documents\Visual Studio 2008\Projects\ExcelAddIn1\ExcelAddIn1\ThisAddIn.Designer.cs:line 66
at Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase.Microsoft.VisualStudio.Tools.Applications.Runtime.IEntryPoint.InitializeDataBindings()
at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.ExecutePhase(ExecutionPhases executionPhases)
at Microsoft.VisualStudio.Tools.Office.Internal.OfficeAddInAdapter.InitializeEntryPointsHelper()
I actually have now created a brand new solution of type Excel AddIn, and not changed anything in the code at all, and still get the same error.
What does this mean? Googling around, I see someone on MSDN who seems to have had the same issue but unfortunately never got an answer to his questions. Has anyone seen this issue before?