I have an ASP.NET web form application that uses a third-party service through a WCF service proxy that I created in Visual Studio 2010 using the Add Service Link command.
I added several public methods to the created Client class in a separate partial class definition so that they persist even if I regenerate the proxy. These methods are what the rest of my code calls instead of directly calling proxy methods that map to api calls.
The problem I am facing is when I need to debug the methods that I added. When I put a breakpoint in one of the methods that I created, and then try to execute a step or step in the code, Visual Studio hangs for a while and then returns with the following error:
Unable to automatically switch to server. Failed to connect to the server machine [service address]. The debugger cannot connect to the remote computer. This may be because the remote computer does not exist or the firewall may interfere with communication with the remote computer. Please seek help for help.
After this error, Visual Studio will automatically exit the method that I was debugging, preventing me from debugging my client code.
Visual Studio , . , , .
Visual Studio ?
UPDATE
, , DebuggerStepThroughAttribute, , , , , 't , VS .