Monday, December 21, 2009

An attempt was made to access a socket in a way forbidden by its access permissions

// Listen to our own port 80 (HTTP protocol port).
IPAddress localAddr = IPAddress.Parse("127.0.0.1");
TcpListener listen = new TcpListener(localAddr, 80);
This exception occurred me in Vista because of Port. This exception rise some well-known ports thus using other port (Ex:- 12 , 8008) you may resolve this.
Post a Comment