I'm running Visual Studio 2010 on a Windows 7 x64 machine, and occasionally VS is giving me the good old "The remote procedure could not be debugged.This usually indicates that debugging has not been enabled on the server" error that a lot of people ask about.
My problem, though, is that it seems to only do this randomly(it can be anywhere from a few minutes to a few hours), and after I've made plenty of successful calls to the service already. It doesn't prevent the service from working. It still returns values and doesn't throw any errors. The only difference is that annoying dialog pops up everytime I start to debug my application.
I should mention that I'm connecting the WCF service from a WPF application. If I launch the web site the service is part of, I don't get the dialog.
A few of the things I've tried that do not work:
Is this just a bug in Visual Studio 2010, or is there something I'm missing?
UPDATE
I've noticed that this seems to occur if my WPF application crashes while the WCF service is being initialized. Afterwards, all attempts to call the WCF service will bring up the "Unable to debug" message until I restart VS2010.
This might not necessarily be an option if you've already deployed the service, but if you add the website as a local project rather than as an IIS project, it'll use the built-in debug web server (Cassini), which VS seems to have less trouble attaching to.
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