I think you should try this:
- Run cmd.exe as administrator.
- Type in and run the following two lines of command:
netsh winsock reset catalog
netsh int ip reset reset.log hit
- It may say that a reboot is required, but actually that is not necessary.
- Try to debug your application again, the problem should be solved.
EDIT:
Sorry for not providing an explanation for this before. The answer actually came from a Chinese forum and the original author didn’t explain it much. But he did say that it’s because Visual Studio is a 32bit program which may have problem accessing network under 64bit Windows 7, and the aforementioned solution resets the network connection therefore solves the problem.