>1. Have you verified that you can run the script from VFP using Execscript? If the first step fails, then you would not be able to proceed any futher.
Yes, this works from VFP.
I have found that SET("LIBRARY") does not work with ExecScript(). But, SET("PATH") works. This seems to indicate that the use of a library in that environment is not supported. It still suprises me that no error is reported with the SET LIBRARY TO PHDBASE command. Having the library not loaded would then explain why any call to PHD() would generate an error.
The only other alternative I could think would be to issue a shell VFP command with a PRG file from within .NET. But, that would mean that I would need VFP install.