.NET Addin code not working...can't figure out what has changed

B

Brian

I have a .NET Addin for Outlook that was working fine. I mucked around a bit with the references and the set up file and now the application has quit working. I have no idea why. I have checked and re-checked the references and think they are correct, but don't know for sure. I don't know why else it wouldn't be working

Here is a snippet of code that was working, but is now failing

Imports Outlook = Microsoft.Office.Interop.Outloo
Dim WithEvents m_olOutlook As Outlook.Applicatio
...
...
Dim oStandardBar as CommandBar = m_olOutlook.ActiveExplorer.CommandBars("Standard"
btnProjectWizard = oStandardBar.Controls.Item("ButtonName"

I get a 'Input parameter not correct' error on that last line. My code used to work and has not been changed, but like I said, I did muck around with my references. I am running this on Office 2003 and have installed the PIAs.

ANY IDEA WHAT I MAY HAVE SCREWED UP?!?
 
Top