Adding a service link in VS2012 does not update web.config

When I add a service link in Visual Studio 2012, nothing happens with my Web.config. System.ServiceModel is not added if it does not exist and is not updated if it exists. I need to copy / paste the settings manually from the server side to get them in my web.config. Does anyone know why my wcf configuration is not pulled into web.config when I add a service link? This has always been done for me in previous versions of Visual Studio. Thanks.

+4
source share
1 answer

I had a similar problem, but then I found this blog post and it helped: http://thomashundley.com/post/2011/12/07/WCF-Service-References-not-generating-webconfig-client-endpoints -and-bindings.aspx - basically, in the extended Service Reference configuration, clear the list of checked assemblies - leave only those that you are sure are necessary for the types used in the service.

0
source

All Articles