Thanks again, Matt. I hope he does check, because I am very interested here, and have already invested a lot of time. I want to make a vb.net application to administer mailing lists with sortable columns, validations, search functions, timestamps and logs for address changes, and list-poster management for Andy's Listserver. If I can only get it to connect, the rest of the application will be fun!
Now, I am thinking about this:
Code:
Retrieving the COM class factory for component with CLSID {D6567EF8-0A6C-48E7-9288-A2463123C2F3} failed due to the following error: 80070424 The specified service does not exist as an installed service. (Exception from HRESULT: 0x80070424).
A first chance exception of type 'System.NullReferenceException' occurred in hMailMan.exe
(hMailMan is the name of my program)
It says, "The specified service does not exist as an installed service."
I wonder if that really means that the interop.hMailServer.dll just can't connect to the server? I can't see any way to tell my app through the COM to connect to the server. There don't seem to be any COM functions exported to that effect. Remember, the hMailAdmin.exe GUI works just fine. If it can connect, sure my application can connect too.
Now, I have assumed that if I use the interop.hMailServer.dll that I installed with hMailServer on my workstation, that it picks up the connection itself, since I have told DCOM to run that dll's code on the server. However, I do notice in the registry, that the CLSID of {D6567EF8-0A6C-48E7-9288-A2463123C2F3} (which is the application class for the dll's COM function) has an "AppID" of {5EDEC473-39E0-43F6-A234-1947071721C8}, which I assume, but don't know for sure, is the id of the local hMailServer.exe that is denoted in the "LocalServer32" key.
How do I associate my application with the DLL, then? It doesn't seem enough to reference it. How does the hMailAdmin connect? I see it using a TCP connection - is it using socket calls?