I am trying to create an automation object so that I can communicate with a COM DLL. Previously, I was calling the create function like this:
ok := CREATE(myObject, TRUE, TRUE)
This worked fine but the performance on the RTC in a 3-tiered architecture was very slow. I changed the call to the create function so that the automation object would be created on the server instead of the client as follows:
ok := CREATE(myObject, TRUE, FALSE)
With this change, the performance on the RTC was much improved in a 2-tiered architecture but we recieve an error in the 3-tiered architecture:
This message is for C/AL programmers: Unable to create an instnce of Automation Server System.__ComObject with CLSID = ... Retrieving the COM class factory for component with CLSID ... failed due to the following error: 80040154..
How do I need to register my DLL in order for the COM objects to be created on the server? Do I need to put it in the bin folder on the server with the NAV service executable or just register it as a COM DLL using regasm and put it anywhere? Does it need to go in the GAC? I'm able to find a lot of documentation on how to work with Automation objects but I can't find anything that explains how the DLL should be deployed. Any help on this would be greatly appreciated!