Apologies meant to respond yesterday and the day got away from me.
I think I still need to better understand your goal. I think I understand it to be having a combination of switches and sensors and having a UI that responds to changes (e.g. with a door opens that is reflected
you want to keep the state in the c# and query it.
The error you are describing below suggest to me that your application isn’t getting installed, but might be because the method signature isn’t matching up. Can you double check the following (these are steps
Verify that your application is being complied and placed in the output folder:
Hub\output\binaries\pipeline\AddIns. You should see an output folder for your new application. (see Set Project Properties section on
“How to: Create an App)
Verify you added the application to your home store catalog (See “Add Dummy2 App” section on How to: Create an App)
Verify you can successfully install and run the application when you install devices?
Based on your previous message I think the above are likely all true, but wanted to double check. If the application is being installed and runs correctly and the error is being thrown just when you try to call
a new method that you have defined then likely something is off in the method signature. I would model on the calls in the switch or sensor application. A few more questions:
Are you defining a new method that you want to call?
If so, are you including the method signature in the ServiceContract (see end of SwitchSvc.cs) and the appropriate implementation (see middle of SwitchSv.cs) and then in file that implements
the module (e.g. SwitchController.cs)
Can you try defining your new method without any parameters and calling that to verify it is working?
If you can zip up the code for the application you are writing and share – I can take a look at the whole thing and that context would be helpful. The parameter passing can be a bit fussy and easy for something
to be off.