Invalid Procedure Call or Argument when calling RegisterServer with SLIK-DA
I am getting the following error when I call the RegisterServer method on the SLIK-DA object. Run-time error '5'; Invalid Procedure Call or Argument How can I resolve this error?
The main cause of this error is that your ProgID is the not in the correct format. ProgIDs should always be in the format:
VendorName.OPCServerName.Version
Example: SWToolbox.OPCServer.1
We have specifically seen this error when the user leaves off the version number at the end. The simple fix is to add a .n where n can be any number and then try to call RegisterServer again.