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. Web Development
  3. ASP.NET
  4. 'The underlying connection was closed: The connection was closed unexpectedly.' Error

'The underlying connection was closed: The connection was closed unexpectedly.' Error

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netquestion
4 Posts 2 Posters 1 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.
  • P Offline
    P Offline
    pubududilena
    wrote on last edited by
    #1

    Hi All, I am developing a WebApplication using ASP.NET and C#. there is a exception occurs when i call for a XmlWeb Service --Web Method. This is the code. try{ DataXML service=new DataXML(); service.Timeout = 10 * 60 * 1000; object[] results = service.GetProductionData(); }catch(Exception ex) { str=ex.Message; } Here we have to wait around 100 seconds to get the response. But before that there is exception occurs and the error message says 'The underlying connection was closed: The connection was closed unexpectedly So the client side returns a exception before results come. why is that?? can any one help on this? Thanks in advance..

    A 1 Reply Last reply
    0
    • P pubududilena

      Hi All, I am developing a WebApplication using ASP.NET and C#. there is a exception occurs when i call for a XmlWeb Service --Web Method. This is the code. try{ DataXML service=new DataXML(); service.Timeout = 10 * 60 * 1000; object[] results = service.GetProductionData(); }catch(Exception ex) { str=ex.Message; } Here we have to wait around 100 seconds to get the response. But before that there is exception occurs and the error message says 'The underlying connection was closed: The connection was closed unexpectedly So the client side returns a exception before results come. why is that?? can any one help on this? Thanks in advance..

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      It is impossible to answer the way you have posted your question. Why don't you place a debugger in the method GetProductionData and see if there is a problem in that method or not.

      Ahsan Ullah Senior Software Engineer

      P 1 Reply Last reply
      0
      • A AhsanS

        It is impossible to answer the way you have posted your question. Why don't you place a debugger in the method GetProductionData and see if there is a problem in that method or not.

        Ahsan Ullah Senior Software Engineer

        P Offline
        P Offline
        pubududilena
        wrote on last edited by
        #3

        Hi, I have debugged the code. but I can not find a error. while I am debugging the XML Webservice method,client side displaying the error message. why is that? Is it like timeout error?

        A 1 Reply Last reply
        0
        • P pubududilena

          Hi, I have debugged the code. but I can not find a error. while I am debugging the XML Webservice method,client side displaying the error message. why is that? Is it like timeout error?

          A Offline
          A Offline
          AhsanS
          wrote on last edited by
          #4

          Post the code of your webservice method.

          Ahsan Ullah Senior Software Engineer

          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