EBDN - Community - Question & Answers

  Wednesday, 27 November 2019
  3 Replies
  1K Visits
0
Votes
Undo
Hi!
Why do I get an error when I try to use Application.Automation methods on the application object?

Error thrown:

'_myApplication.Automation' threw an exception of type 'Aucotec.EngineeringBase.Client.LicenseException'
AucotecResult: -2147194490
Data: {System.Collections.ListDictionaryInternal}
HResult: -2147194490
HelpLink: null
InnerException: null
Message: "Error, No valid license found to perform this action."
Source: "Aucotec.EngineeringBase.Client.RuntimeHostAdapter"
StackTrace: "\r\nServer stack trace: \r\n at Aucotec.EngineeringBase.Client.RuntimeHostAdapter.ApplicationHostAdapterViewToContract.get_Automation()\r\n at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)\r\n at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)\r\n\r\nException rethrown at [0]: \r\n at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n at Aucotec.EngineeringBase.Client.RuntimeContract.IApplication.get_Automation()\r\n at Aucotec.EngineeringBase.Client.RuntimeAddInAdapter.ApplicationAddInAdapterContractToView.get_Automation()"
TargetSite: 'TargetSite' threw an exception of type 'System.IO.FileNotFoundException'