Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF AddressAccessDeniedException

Tags:

c#

wcf

I am new to WCF.

I created a WCF service which was working , but when I try to host it in a console application, it is giving me an exception:

AddressAccessDeniedException

host.AddServiceEndpoint(typeof(ISampleService), new BasicHttpBinding(),"http://localhost:8080/evals/basic");
like image 543
user1135534 Avatar asked Jan 07 '12 04:01

user1135534


1 Answers

Right click on Visual Studio and run it as Administrator.

like image 131
keyboardP Avatar answered Oct 03 '22 09:10

keyboardP