We have a WCF service (setup to use IIS Express in VS2010 SP 1) that we start up for debugging.
Most (95%) of the time it will just startup and sit there running/waiting. 5% of the time though it will decide to start the WCF Test Client which if you close ends the service.
Is there anything we can do so the test client doesn't load ever? It's a bit annoying..
This happens if you start the application when working on the service (service is your active opened file).
If you want to use an .svc file as the start page, but don't want the WCF Test Client to pop up when you run your project, you can:
right click project -> unload project
right click project -> edit project.csproj
add the following (or set it to False if it already exists):
<EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue>
within:
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f22}">
<WebProjectProperties>
...
<EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
Then obviously set your start page to your .svc file. If that still brings up the WCF Test Client, make sure there isn't a setting overriding it within the .csproj.user file, like so:
<EnableWcfTestClientForSVC>True</EnableWcfTestClientForSVC>
(Or you can set this field to false in .csproj.user instead of setting the other one in the .csproj file. That way, you don't force the same setting for other developers, whichever works for you).
I have confirmed this works with Visual Studio 2010 and 2012.
In my experience, if the startup project is the WCF Service project AND you have set a .svc file as the start page, you get the WCF test client when starting debugging.
If you don't have a start page, the WCF test client is not automatically launched.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With