Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 172.21.101.157:8080

TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 172.21.101.157:8080

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpdatabasewcfsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BalasubramanianK
    wrote on last edited by
    #1

    Hi, I have an windows application. On button click, I call a service called ServiceA (ServiceA is in my local machine). From ServiceA's method, I hit database and retrieve some records. After retrieved, I call another WCF service called ServiceB (ServiceB is availabled in another machine within network). I have added ServiceB's proxy files in my ServiceA's project. endpoints and bindings are added in wwwroot\web.config. When I try to consume ServiceB's method, I am getting the following error. Could not connect to http://tde017:8080/AdapterService/AdapterService.svc. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 17.21.11.17:8080 Previously, it throws with the port number 80. I configured the another port 8080. Now error is throwing with 8080. But, If I consume the serviceB directly from my windows application, I am getting response. If I go through another service, I am getting error. I tried many scenarios. But, still I could not get solution. Any one help me on this.... Thanks in advance. Regards, Bala

    Balasubramanian K.

    J 1 Reply Last reply
    0
    • B BalasubramanianK

      Hi, I have an windows application. On button click, I call a service called ServiceA (ServiceA is in my local machine). From ServiceA's method, I hit database and retrieve some records. After retrieved, I call another WCF service called ServiceB (ServiceB is availabled in another machine within network). I have added ServiceB's proxy files in my ServiceA's project. endpoints and bindings are added in wwwroot\web.config. When I try to consume ServiceB's method, I am getting the following error. Could not connect to http://tde017:8080/AdapterService/AdapterService.svc. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 17.21.11.17:8080 Previously, it throws with the port number 80. I configured the another port 8080. Now error is throwing with 8080. But, If I consume the serviceB directly from my windows application, I am getting response. If I go through another service, I am getting error. I tried many scenarios. But, still I could not get solution. Any one help me on this.... Thanks in advance. Regards, Bala

      Balasubramanian K.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      As you noted it is a WCF service. Pretty sure that the error you are getting indicates a failure to match client and server WCF configurations. So the starting point would be to look at the servers WCF configuration.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups