WCF AddressAccessDeniedException

use*_*534 5 c# wcf

我是WCF的新手.

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

AddressAccessDeniedException

host.AddServiceEndpoint(typeof(ISampleService), new BasicHttpBinding(),"http://localhost:8080/evals/basic");
Run Code Online (Sandbox Code Playgroud)

key*_*rdP 7

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