Please check the endpoint address of the in your webservicereferences.clientconfig. It should be a BasicHttpBinding, and the endpoint of the basichttp endpoint configured in the web.config of PIWebservices.
Thanks for that. It points me in the right direction. These config files are a little confusing as I have not dealt with them before.
Do you have a working example of the ServiceReference.ClientConfig file and a matching web.config file ?
Also, am I right in believing that you can have multiple binding types deifned in the web.config file ?
I am making good progress.
I've set up the web.config in the PI WebServices directory to use basicHttpBinding.
This now allows me to run Lonnie's Silverlight app which is great.
This file only allows me to set up either basicHttpBinding or wsHttpBinding.
Has anyone set up a web.config to allow both to function without needing to switch files.
My attempt resulted in an error regarding two endpoints using to same contract.
Yes, you can have two bindings configured for the same contract. You can only use one for your client.
If you create your client, you can give a bindingconfiguration name in the constructor.
var client = new PIWebserviceClient("<bindingconfigurationname>"). You can find the bindingconfiguration name in your servicereferences.clientconfig.