TClientDataset from ISAPI?
Posted on 2001-07-10
I have a desktop application written in Delphi 4 C/S with all patches applied. The application loads information from CDS files into a couple of TClientDatasets. Everything works great. I then wrote an ISAPI dll that uses the same component. It errors out on the ClientDataSet.LoadFromFile('myfile.cds');
I get an EOleSysError - Class not registered. I know about STDVCL40.dll and DBClient.dll. Both are registered and the desktop app works great. Just not at all on either Win NT 4.0 Server with IIS 4.0 or Win 2000 with IIS 5.0. How do I get it to load the file in IIS? Obviously I am not getting to the classes registered in DBClient.dll where the loadfromfile function is located.
UPDATE: The Error is "EOleSysError - Interface not registered". Everything is on one machine. Delphi 4 C/S does not have the Midas.dll. How and when do I use CoInitialize in the ISAPI dll? I think this may be my problem. The CDS file is in the scripts directory with the ISAPI dll with read/write permission. On NT, I see no IUSR_<machine_name> account but I do see it on Win 2000. Any more information I can give to help? Can anyone give me an example of using CoInitialize with TClientDataSet in a Delphi ISAPI dll? Thanks!