Results 1 to 4 of 4

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

  1. #1
    Join Date
    Oct 2004
    Posts
    65

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

    I am working a code for years. I am using Windows 2003 Server here. I am the only admin in the system. I installed some security fixes in the system and after that the code started failing. I cannot find the actual cause behind that but somehow it looks a bit irritating. The error is -- System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions.If the code is running in admin then this kind of errors must not appear. How can I resolve this. Thanks.

  2. #2
    Join Date
    Sep 2004
    Posts
    129

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

    If you go on web and search that error code then you can will ample of third party articles based on the same. The issue basically appears when the security settings in your system does not allow the code to access a port. It happens mostly to uncertified applications which are detected as threat. You will need to check the port that is used by the code and see whether it is blocked or not.

  3. #3
    Join Date
    Aug 2011
    Posts
    403

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

    This is a permission issue. You require admin privileges and the problem will be resolved. In whatever account you are trying to execute does not has maximum privileges and due to which you are getting the error. To troubleshoot the same you can first try to create a new account. Apply full admin rights to the same and then try once again to execute the code. This is quiet enough to fix the issue. I had seen this error commonly faced by many and it is resolved once they are able to execute the same at full permission.

  4. #4
    Join Date
    Jun 2011
    Posts
    285

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

    A few things you can also try to get rid of the error. The first thing you have to do is turn off your firewall on temporary basis only. And then execute the code. See whether it is working well or not. If yes then turn the firewall back again and test once. You have to configure the firewall service to get the code work. The second thing you can do is restart your pc and test once again. For temporary period just turn off the antivirus tool and run the code once. This is mostly some kind of security issue in your system which is causing the problem.

Similar Threads

  1. Server Error 403-Forbidden: Access Denied
    By E. (Izzy) Schultz in forum Windows Update
    Replies: 13
    Last Post: 04-10-2011, 07:33 AM
  2. Replies: 3
    Last Post: 19-12-2010, 07:27 AM
  3. Server Error 403 Forbidden: Access is denied
    By MMurphy in forum Windows Update
    Replies: 8
    Last Post: 21-01-2010, 01:10 AM
  4. USB access is forbidden by the server
    By dugu in forum Networking & Security
    Replies: 3
    Last Post: 19-05-2009, 05:39 PM
  5. Can't access Windows XP without permissions
    By Atilla in forum Operating Systems
    Replies: 3
    Last Post: 31-03-2009, 01:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,638,123,147.94542 seconds with 17 queries