Announcement

Collapse
No announcement yet.

Error with 2040

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error with 2040

    I am getting this error ever since I upgraded Homeseer to 2040 when running the following command. Any ideas?

    Command in a .vb script hs.GetPluginsEX("EMail Access").Connect(v_email_username, v_email_password)

    It's a long one...
    Scripting runtime error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Argument 'Index' is not a valid value. at Microsoft.VisualBasic.Collection.get_Item(Object Index) at scriptcode1.scriptcode1.Main(Object param) --- End of inner exception stack trace --- at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess) at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodInfo.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
    Billy Draper

  • #2
    Replace this:

    hs.GetPluginsEX("EMail Access")

    with this:

    hs.Plugin("EMail Access")
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


    • #3
      Thanks Blade, that worked great.
      I replaced: hs.GetPluginsEX with: hs.Plugin in all of the email scripts I had customized.

      I have reviewed the Homeseer 2040 upgrade notes and did not see anything about the change to hs.GetPluginsEX but I may have missed it in a prior release. I upgraded from version 2003 to version 2040 and thats when the error started.

      Thanks for your help, I really appreciate it.
      Billy Draper

      Comment


      • #4
        Not a problem. Glad I could help
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment

        Working...
        X