This following code used to work in VS2003, then I UP-converted it to VS2005.

Now in VS2005 it works while running in the VS2005 environment (little green arrow at top), but fails when trying to run the compiled .exe (Error is after code)

---begin code---

Imports AdminTypeLibrary
Imports GroupwareTypeLibrary

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PO, Dom As String
Dim objDomain, objDom, objPOs, objPO, objCurPO As Object
Dim objdlists, objdlist
Dim DomPath As String = "T:\GRPWISE\DOMAIN"

PO = "<PO String>"
Dom = "<Domain>"

Dim objAdminSystem As Object
'Dim objAdminSystem As New NovellGroupWareAdmin() - Had tried that.
objAdminSystem = CreateObject("NovellGroupWareAdmin") <------------fails here per error, but works when running it in the VS2005 environment
objDomain = objAdminSystem.Connect("T:\GRPWISE\DOMAIN")

'Connect to Default Domain
objDom = objAdminSystem.ConnectedDomain

'Get the Post Offices collection
objPOs = objDom.PostOffices

'Enumerate the Post Offices on objPOs and populate cbPOs.
For Each objPO In objPOs
objCurPO = objPO

objdlists = objCurPO.distributionlists

For Each objdlist In objdlists
Catch ex As Exception
End Try

End Sub

---end code---

Error: System.Exception: Cannot create ActiveX component

The only thing I can really add to when I look in the registry and some other searching online....I think I remember reading that "NovellGroupWareAdmin" is called from GWCMB1.dll. (and I added it manually to ..."bin\Debug" directory)

here is a screenshot of the references:

Any idea what I'm messing up?