ServiceReferences.ClientConfig is empty
Currently, I am working on some Silverlight 3 involved projects. As you probably know Silverlight uses WCF web services for data retrieval.
So, as usual, I created WCF service in Silverlight hosting application, compiled and added a service reference to Silverlight project. Usually, the wizard creates
ClientConfig and populates it with bindings settings. However, it didn’t happen this time.
ServiceReferences.ClientConfig was empty. I tried different things and created a project from scratch. Tried vb.net, c#. Nothing helped, ServiceReferences.ClientConfig was empty all the time. I remember that it worked this way before. Recently I did some WPF coding with some custom
TCP/IP based bindings. Apparently, it somehow affected the default settings for WCF services. So, the solution was very simple:
In your Silverlight hosting application
web.config replace default binding