Search code examples
windowsdelphidcomdatasnap

Datasnap/DCOM on Windows Web Server 2008 R2


The same setup works on Windows 7 / 64 Bit and Windows Server 2008 / 64 Bit:

  • the Datasnap server application is located on a mounted network drive
  • registered with tregsvr <drive>:\path\to\server.exe (as Administrator)
  • the GUID is shown in dcomcnfg
  • Socketserver and DCOM services are running

The client fails with the error message "Class not registered"

If I move the server app to a local directory, and repeat the tregsvr registration, the client can connect without problems.

What else could I check?


Solution

  • Is the client allowed to connect to the network drive? Since the client is in fact initiating the startup of the server, it should be able to read that network drive (which is exactly what you are seeing, since it works fine if the server is on a local drive)...