Sorry if this double posts....I THOUGHT I posted this 2 days ago, but
never saw it show up....
My response is inline below....
Silly question, but when you deployed this application to its final
location, did you copy the Groupware .dll's and the InterOp .dll's?
Response:
Currently, the final location is still my local machine. I did some
searching and see there are multiple debug and release directories
(I'm assuming setup by VS2005). Here are the contents of those folders
(Project name is GW_troubleshooting):
GW_troubleshooting\bin\Debug>
11/04/2003 11:17 AM 557,108 GWCMB1.dll
10/15/2006 10:07 PM 32,768 GW_troubleshooting.exe
10/15/2006 10:07 PM 65,024 GW_troubleshooting.pdb
09/23/2005 06:56 AM 5,632 GW_troubleshooting.vshost.exe
10/15/2006 10:07 PM 126 GW_troubleshooting.xml
10/13/2006 08:45 AM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:35 PM 688,128 Interop.GroupwareTypeLibrary.dll
GW_troubleshooting\bin\Release>
10/13/2006 03:35 PM 28,672 GW_troubleshooting.exe
10/13/2006 03:35 PM 60,928 GW_troubleshooting.pdb
10/13/2006 03:35 PM 126 GW_troubleshooting.xml
10/13/2006 03:31 PM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:31 PM 688,128 Interop.GroupwareTypeLibrary.dll
GW_troubleshooting\obj\Debug>
10/15/2006 10:07 PM 32,768 GW_troubleshooting.exe
10/13/2006 03:35 PM 180
GW_troubleshooting.Form1.resources
10/15/2006 10:07 PM 65,024 GW_troubleshooting.pdb
10/13/2006 03:35 PM 180
GW_troubleshooting.Resources.resources
10/13/2006 09:08 AM 842
GW_troubleshooting.vbproj.GenerateResource.Cache
10/13/2006 03:35 PM 541
GW_troubleshooting.vbproj.ResolveComReference.cache
10/15/2006 10:07 PM 126 GW_troubleshooting.xml
10/13/2006 08:45 AM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:35 PM 688,128 Interop.GroupwareTypeLibrary.dll
10/13/2006 10:24 AM <DIR> TempPE
GW_troubleshooting\obj\Release>
10/15/2006 09:53 PM 0 build.force
10/13/2006 03:35 PM 28,672 GW_troubleshooting.exe
10/13/2006 03:31 PM 180
GW_troubleshooting.Form1.resources
10/13/2006 03:35 PM 60,928 GW_troubleshooting.pdb
10/13/2006 03:31 PM 180
GW_troubleshooting.Resources.resources
10/13/2006 03:31 PM 842
GW_troubleshooting.vbproj.GenerateResource.Cache
10/13/2006 03:31 PM 541
GW_troubleshooting.vbproj.ResolveComReference.cache
10/13/2006 03:35 PM 126 GW_troubleshooting.xml
10/13/2006 03:31 PM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:31 PM 688,128 Interop.GroupwareTypeLibrary.dll
10/13/2006 03:24 PM <DIR> TempPE
GW_troubleshooting\My Project>
10/13/2006 08:37 AM 1,519 Application.Designer.vb
10/13/2006 08:37 AM 510 Application.myapp
10/13/2006 08:37 AM 1,217 AssemblyInfo.vb
10/13/2006 08:37 AM 2,804 Resources.Designer.vb
09/23/2005 03:27 AM 5,612 Resources.resx
10/13/2006 08:37 AM 3,054 Settings.Designer.vb
09/23/2005 03:27 AM 279 Settings.settings
Honestly, I'm not sure what the different folders are for :-/
Here is my 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>"
Try
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
Next
objdlists = objCurPO.distributionlists
For Each objdlist In objdlists
lbGWDlist.Items.Add(objdlist.Name)
Next
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
-----End Code-----
The only thing I can really add to this...is 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:
http://img.villagephotos.com/p/2004-8/797417/GWts_references.jpg
Any idea what I'm messing up?