I'm in the middle of creating a plugin. I've made the public scripting functions, and they work great using scripts. This is completely OK within a script:
However, if I place the exact same line in my ASPX page for the plugin, I get an "Object not set to an instance of an Object" error which does not make sense.
If I in the aspx page for example do:
... it prints out the version number just like it should!
And if I remove a parameter from the function call, like this:
... I get an "Overload resolution failed because no accessible 'CreateDevice' accepts this number of arguments" like I should. So the aspx page DOES find the function!
I'm completely stuck! I seriously don't know what's going on.
What am I missing?
Code:
hs.Plugin("Domation").CreateDevice("Child 1 Green", "A3", 1, 2, True)
However, if I place the exact same line in my ASPX page for the plugin, I get an "Object not set to an instance of an Object" error which does not make sense.
If I in the aspx page for example do:
Code:
Response.Write(hs.Plugin("Domation").Version)
And if I remove a parameter from the function call, like this:
Code:
hs.Plugin("Domation").CreateDevice("Child 1 Green", "A3", 1, 2)
I'm completely stuck! I seriously don't know what's going on.
What am I missing?
Comment