运行寄宿exe程序的时候通过run as administrator来启动就OK了. 转载于:https://www.cnblogs.com/sanjia/p/wcf_hosting_in_windows7_via_exe.html