Reputation: 961
I have a solution that has a WCF service project, and a client project. I can successfully add the service reference by discovering the service within the solution. However, after adding the service reference and making changes, I am unable to update the service reference. I know it's because the service isn't actively running/being debugged. In order to update the service reference I have to delete it, then add it back again since you can't update the service reference while debugging. I just updated to VS 2015 and was hoping that a solution had been added but that doesn't seem to be the case. Am I missing something or is that just how it is?
Upvotes: 4
Views: 25442
Reputation: 263
Run it without debug: Press CtrlF5 and then update the reference. Not being familiar with your project, you may need to host it in IIS or self host in a console app or something to do this.
Upvotes: 8
Reputation: 51
If you have your application published on local IIS, you must change the server on your Web Application Project.
Go to Your Project > properties > Web > web Servers
and select External Host
on the Combobox. Set the project URL to the same as your local IIS is running your Application. Try Update your reference again.
Upvotes: 0
Reputation: 1120
If you do run the WCF in debug, once it loads, just go to your debug menu in VS and click "Detach All." Then update your service reference.
Upvotes: 3