Private WithEvents mylogonService As NewsrLogon.IwcfLogonServiceClient
Error:
Could not find default endpoint element that references contract
‘SilverlightApplication.srLogon.IwcfLogonService’ in the ServiceModel
client configuration section. This might be because no configuration file was
found for your application, or because no endpoint element matching this
contract could be found in the client element.
+++++
According to a Silverlight Forum discussion
(http://silverlight.net/forums/t/18006.aspx) the solution is to fully qualify
the ‘contract’ in the <client/endpoint> section of the
ServiceReferences.ClientConfig file with the Silverlight project name.
<client>
<endpoint address="http://localhost:59715/wcfLogonService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IwcfLogonService"
contract="SilverlightApplication.srLogon.IwcfLogonService" name="BasicHttpBinding_IwcfLogonService"/>
</client>