WCF AddressAccessDeniedException

时间:2012-01-07 04:27:05

标签: c# wcf

我是WCF的新手。

我创建了一个正在运行的WCF服务,但是当我尝试在控制台应用程序中托管它时,它给了我一个例外:

AddressAccessDeniedException

host.AddServiceEndpoint(typeof(ISampleService), new BasicHttpBinding(),"http://localhost:8080/evals/basic");

1 个答案:

答案 0 :(得分:7)

右键单击Visual Studio并以管理员身份运行它。

相关问题