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. WCF and WF
  4. I am getting a lost connection exception but the call is succeeding

I am getting a lost connection exception but the call is succeeding

Scheduled Pinned Locked Moved WCF and WF
csharpwcfsysadminhelp
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.
  • D Offline
    D Offline
    Dale Haessel
    wrote on last edited by
    #1

    I am writing a WCF client accessing a 3rd party server. I put the call in a try catch block and the catch gives a "The underlying connection was closed: An unexpected error occurred on a receive". Since the call actually ran, I have no idea why it gives this error. try { XMLObject theResults = _UnifierWebServices.createBPRecord(x, y, z); return CheckForSuccess(theResults, BPName, false); } catch (Exception e) { // Lost Connection Exception }

    M 1 Reply Last reply
    0
    • D Dale Haessel

      I am writing a WCF client accessing a 3rd party server. I put the call in a try catch block and the catch gives a "The underlying connection was closed: An unexpected error occurred on a receive". Since the call actually ran, I have no idea why it gives this error. try { XMLObject theResults = _UnifierWebServices.createBPRecord(x, y, z); return CheckForSuccess(theResults, BPName, false); } catch (Exception e) { // Lost Connection Exception }

      M Offline
      M Offline
      Michael J Eber
      wrote on last edited by
      #2

      In my WCF services (that I have control over) I find I get the lost connection when sending a call to a WCF service and that service throws an exception. Try configuring the third party service to return the exception on a call to see what is causing the exception. If you cannot do that, you may need to pull in the third party to discuss how they are logging exceptions within their service so you can debug it.

      Software Zen: delete this;

      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