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. WebException timeout Problem.

WebException timeout Problem.

Scheduled Pinned Locked Moved ASP.NET
helpquestion
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.
  • V Offline
    V Offline
    vishalmudrale
    wrote on last edited by
    #1

    We are using a web service(asmx) to communicate with service provider. Problem: We are getting a web exception while sending and receiving response. Exception Details : 1) Exception Message : The request was aborted: The operation has timed out. 2) Exception Status : timeout We are getting this timeout status within 40 seconds whereas we have set webrequests timeout property to 180 seconds. Can anybody please suggest me the solution of this problem??

    Vishal

    O 1 Reply Last reply
    0
    • V vishalmudrale

      We are using a web service(asmx) to communicate with service provider. Problem: We are getting a web exception while sending and receiving response. Exception Details : 1) Exception Message : The request was aborted: The operation has timed out. 2) Exception Status : timeout We are getting this timeout status within 40 seconds whereas we have set webrequests timeout property to 180 seconds. Can anybody please suggest me the solution of this problem??

      Vishal

      O Offline
      O Offline
      onelopez
      wrote on last edited by
      #2

      Double check your time again, the WebRequest class uses timeout in milliseconds, so if you did something like

      webRequest.Timeout = 180;

      That just means that it will expire in 180 milliseconds and not the expected 180 seconds. If your time is correct, then check with the server and make sure that the server does not close the connection after sometime without completing the request.

      V 1 Reply Last reply
      0
      • O onelopez

        Double check your time again, the WebRequest class uses timeout in milliseconds, so if you did something like

        webRequest.Timeout = 180;

        That just means that it will expire in 180 milliseconds and not the expected 180 seconds. If your time is correct, then check with the server and make sure that the server does not close the connection after sometime without completing the request.

        V Offline
        V Offline
        vishalmudrale
        wrote on last edited by
        #3

        Thanks for reply friend, My timeout time is correct, I have set webRequest.Timeout = 180000; I am getting two types of webExceptions : 1) Exception Message : The request was aborted: The operation has timed out. Exception Status : timeout This timeout happens within 40 seconds, whereas I have set timeout 180 seconds for my webrequest. 2) Exception Message : The operation has timed out. Exception Status : timeout This is normal timeout. It happens after 180 seconds.

        V 1 Reply Last reply
        0
        • V vishalmudrale

          Thanks for reply friend, My timeout time is correct, I have set webRequest.Timeout = 180000; I am getting two types of webExceptions : 1) Exception Message : The request was aborted: The operation has timed out. Exception Status : timeout This timeout happens within 40 seconds, whereas I have set timeout 180 seconds for my webrequest. 2) Exception Message : The operation has timed out. Exception Status : timeout This is normal timeout. It happens after 180 seconds.

          V Offline
          V Offline
          vishalmudrale
          wrote on last edited by
          #4

          Thanks for reply friend, My timeout time is correct, I have set webRequest.Timeout = 180000; I am getting two types of webExceptions : 1) Exception Message : The request was aborted: The operation has timed out. Exception Status : timeout This timeout happens within 40 seconds, whereas I have set timeout 180 seconds for my webrequest. 2) Exception Message : The operation has timed out. Exception Status : timeout This is normal timeout. It happens after 180 seconds. Problem is in 1st exception case..... Please tell me the solution to this problem....

          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