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. C#
  4. Unable to connect to remote server

Unable to connect to remote server

Scheduled Pinned Locked Moved C#
sysadminhelp
4 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.
  • M Offline
    M Offline
    Manoj Sethi
    wrote on last edited by
    #1

    I need to consume a web servcie but when i try to access it through my code or through command prompt for generating proxy classes it gives me error underlying connection was closed : unable to connect to remote server If i send the same soaprequst to online webservice thorugh altove then i get the successful response back.

    L 1 Reply Last reply
    0
    • M Manoj Sethi

      I need to consume a web servcie but when i try to access it through my code or through command prompt for generating proxy classes it gives me error underlying connection was closed : unable to connect to remote server If i send the same soaprequst to online webservice thorugh altove then i get the successful response back.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      That normally means the host could not be found or the port could not be connected. Make sure you have the hostname and port correct.

      xacc.ide
      The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

      M 1 Reply Last reply
      0
      • L leppie

        That normally means the host could not be found or the port could not be connected. Make sure you have the hostname and port correct.

        xacc.ide
        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

        M Offline
        M Offline
        Manoj Sethi
        wrote on last edited by
        #3

        yeah i have checked that many times that hostname and port are correct but i am still unable to connect through code.

        L 1 Reply Last reply
        0
        • M Manoj Sethi

          yeah i have checked that many times that hostname and port are correct but i am still unable to connect through code.

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Weird indeed. Can you connect via Visual Studio?

          xacc.ide
          The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

          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