昨天我打开服务禁用了不常用的服务,终端服务(Terminal Service)。今天打开VS调试就出错,哈哈, 居然必须得开启终端服务。

解决不能调试的办法:

1. 将工程属性->Debug->Enable the Visual Studio hosting process前的选中标志去掉.
2. 启动Terminal Services服务.