I am doing the following tutorial http://msdn.microsoft.com/en-us/library/ms731835%28v=vs.100%29.aspx and the program is working perfectly fine. Both Service and Client are in different solutions. I can start the service from one visual studio and then run the client program successfully. However I want to do debugging. I want to step into Service code from Client code. When I try doing that, I get the following error.
"Unable to automatically step into the server. Attaching to the server process failed. A debugger is already attached."
Both client and server are console applications and service is slef hosted. I also tried enabling debug = true in the app.config file of client.
In Solution Explorer, right-click the WCF Client project and then click Set as Startup Project. Enable debugging in the app. config or web. config file.
Visual Studio provides you a test client to run and debug the service. To use this test client, select your service in Solution Explorer ( CustomerProfile. svc ) and, from the Debug menu, select Start Debugging (or just press F5). Visual Studio will run the code in debug mode using the WCF Test Client, as shown in ...
There are several possible options for what you're trying to achieve:
I'd recommend (at least for the time being) putting those two into the same solution for debugging purposes. It's easier to work with in the single workspace.
You should attach the Service to the client. In the VS instance where the service is running, go to debug->Attach->(devenv.exe of the VS instance where the Client is running)
and then start the client.
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