juq

Custom command in custom toolbar not working

Discussion created by juq on Aug 11, 2010
Latest reply on Aug 20, 2010 by juq
I am having trouble with creating custom toolbars with custom command buttons in Visual Studio 2005. I'm using ArcGIS 9.3.1. The button is replaced by a circle with a red line through it and the text [Missing]

All the projects that I try to create, even a sample toolbar from EDN doesn't work (it is an older version, but it should still work)
http://edndoc.esri.com/arcobjects/9.0/Samples/Developer_Guide_Scenarios/ArcGIS_Desktop/Developer_Scenarios/MyToolbarVBNET/CREATEATOOLBAR.htm

Not sure if I should be concerned about these messages I get in the immediate window:
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
ArcMap.exe Error: 0 : SetCompatibleTextRenderingDefault must be called before the first IWin32Window object is created in the application.
   at System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(Boolean defaultValue)
   at XToolsNavigator.Toolbar.XToolsApplication.InitVisualApplicationSettings()
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
ArcMap.exe Error: 0 : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at ESRI.ArcGIS.Framework.ICommandBars.Find(Object identifier, Boolean noRecurse, Boolean noCreate)
   at MetadataEditor.Toolbar.ArcMapUIElementsFactory.GetObjectByUID[T](String uid)
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll

Outcomes