一. VS调试在Win7(vista系列)操作系统下 HttpListener无法绑定多个 指定IP、端口问题
来自:http://www.cnblogs.com/ryhan/p/4195693.html
现象:System.Net.HttpListenerException (0x80004005): 拒绝访问。
原因:VS IDE 权限不够(生成的产物权限也会不够),提升UAC权限即可解决
步骤:
1.选中对应Project,右键添加->新增应用程序清单文件 app.manifest
2.将配置项 requestedExecutionLevel 的级别 asInvoker 改为 requireAdministrator
3.启动调试,会使用超级权限重启IDE
4.重启后,服务启动成功...
5.编译的exe文件会出现盾牌标识