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 service reference to Silverlight project. Usually wizard creates ServiceReferences.ClientConfig and populates it with bindings settings. However it didn't happen this time. ServiceReferences.ClientConfig was empty. I tried different things, created 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 some how affected default settings for WCF services. So, solution was very simple:

In your Silverlight hosting application web.config replace default binding binding="wsHttpBinding" with binding="basicHttpBinding".


Posted on Thursday, October 29, 2009 by | Comments (8) | Add Comment

Comments

Gravatar

Re:ServiceReferences.ClientConfig is empty

Thanks! I couldn't figure out why the clientconfig was not being generated!

Posted on 12/16/2009 5:46:51 AM by Jon #
Gravatar

Re:ServiceReferences.ClientConfig is empty

Thx got the problem =p

Posted on 2/15/2011 4:25:34 AM by Stagounet #
Gravatar

Re:ServiceReferences.ClientConfig is empty

Dude, I was looking for a solution to this for a couple of hours. THANKS!!!

Posted on 5/20/2011 7:03:29 PM by Chris Trynkiewicz #
Gravatar

Re:ServiceReferences.ClientConfig is empty

You saved my time, thanks a lot

Posted on 10/10/2011 1:52:32 PM by Aria Sarshar #
Gravatar

Re: ServiceReferences.ClientConfig is empty

Thanks !!!! I lost 2 hours because of that !!

Posted on 2/9/2012 2:23:16 PM by Jan #
Gravatar

Re: ServiceReferences.ClientConfig is empty

Hi,
I exposed an operation related to Bitmap for which I recieved gthe same error. It resolved when I covered it. i dont know why?

Posted on 4/6/2012 7:15:14 AM by Ravi #
Gravatar

Re: ServiceReferences.ClientConfig is empty

You saved me a lot of time Thx

Posted on 9/19/2012 8:32:21 AM by Yeon #
Gravatar

Re: ServiceReferences.ClientConfig is empty

thank you so much.

Posted on 12/4/2013 5:37:58 AM by Alparslan #

New Comment

Your Name:
Email (for internal use only):
Comment:
 
Code above:

Categories

Recent Tweets

  • Simon Ince's Blog: Hierarchies with HierarchyID in SQL 2008 http://t.co/xSDwiF6rRS.
  • Visual Studio 2010 WAS painfully slow - CodeProject http://t.co/Usba1x6CZy

Valid HTML5