Hi Naren,
I guess the error is thrown because you are inputing wrong value to 'IUID.Value'. The value should be ClassID (CLSID) or ProgID with project name and class name of the coclass.
Using CLSID
dim pUID as New UID
pUID.Value = "{E1F29C6B-4E6B-11D2-AE2C-080009EC732A}"
Using ProgID
pUID.Value = "esriArcMapUI.AddDataCommand"
Also, following example may be useful in your case:
Public Class ToggleDockWinBtn
Inherits ESRI.ArcGIS.Desktop.AddIns.Button
Public Sub New()
End Sub
Protected Overrides Sub OnClick()
'Get dockable window.
Dim dockWinID As UID = New UIDClass()
dockWinID.Value = "ESRI_SelectionSample_SelCountDockWin"
s_dockWindow = ArcMap.DockableWindowManager.GetDockableWindow(dockWinID)
End Sub
--------------
Here, I guess 'ESRI_SelectionSample' is the project name or category in which they want their add to be. Hope this helps.
Regards,
Swapna.