I generated a TXP model using Toad Data Modeler 6.1
I launched the command: TDM.exe /regserver
I written and executed automation script to perform various Toad Data Modeler tasks.
How to call TDM from C# application? I tried to execute the following csharp code:
Type toadType = System.Type.GetTypeFromProgID(“TDM.App”);
dynamic App = System.Activator.CreateInstance(toadType);
var Model = App.OpenModelFromFile(“C:\MyProject.txp”);
// TO DO…
but The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)).
How can I solve this problem, anyone knows? Thanks very much!