我是WCF的新手。
我创建了一个正在运行的WCF服务,但是当我尝试在控制台应用程序中托管它时,它给了我一个例外:
AddressAccessDeniedException
host.AddServiceEndpoint(typeof(ISampleService), new BasicHttpBinding(),"http://localhost:8080/evals/basic");
答案 0 :(得分:7)
右键单击Visual Studio并以管理员身份运行它。