System.Net.WebException

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?VmlqYXk=?=

    #1

    System.Net.WebException

    Hi,

    I am calling an external web service that returns some data which is being
    displayed on my ASP.NET page. This page refreshes every 60 seconds and pulls
    the updated data from the web service.

    The page works great for a few minutes and then all of a sudden throws the
    following error:

    System.Net.WebE xception: Unable to connect to the remote server --->
    System.Net.Sock ets.SocketExcep tion: A connection attempt failed because the
    connected party did not properly respond after a period of time, or
    established connection failed because connected host has failed to respond
    at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t,
    SocketAddress socketAddress)
    at System.Net.Sock ets.Socket.Inte rnalConnect(End Point remoteEP)
    at System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure,
    Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketSt ate
    state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---
    at System.Net.Http WebRequest.GetR equestStream()
    at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
    methodName, Object[] parameters)
    at fhlb.cmkt.CFM.p roxy.NetWireSer vice.NetWireSer vice.getNetWire s(getNetWires
    getNetWires1) in E:\Projects\Cap italMarkets\CFM \fhlb.cmkt.prox y\Web
    References\NetW ireService\Refe rence.cs:line 115
    at fhlb.cmkt.CFM.C ashFlowMonitor. getNetWiresSecu red()
    at fhlb.cmkt.CFM.C ashFlowMonitor. Page_Load(Objec t sender, EventArgs e)

    Using ASP.NET 2.0 on IIS 6.0 (Windows Server 2003).

    Any help will be greatly appreciated.

    Thanks!
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: System.Net.WebE xception

    this is normal. it just a timeout on a page request. you need to decide how
    to handle it. maybe save the last results and resuse.

    -- bruce (sqlwork.com)


    "Vijay" wrote:
    Hi,
    >
    I am calling an external web service that returns some data which is being
    displayed on my ASP.NET page. This page refreshes every 60 seconds and pulls
    the updated data from the web service.
    >
    The page works great for a few minutes and then all of a sudden throws the
    following error:
    >
    System.Net.WebE xception: Unable to connect to the remote server --->
    System.Net.Sock ets.SocketExcep tion: A connection attempt failed because the
    connected party did not properly respond after a period of time, or
    established connection failed because connected host has failed to respond
    at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t,
    SocketAddress socketAddress)
    at System.Net.Sock ets.Socket.Inte rnalConnect(End Point remoteEP)
    at System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure,
    Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketSt ate
    state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---
    at System.Net.Http WebRequest.GetR equestStream()
    at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
    methodName, Object[] parameters)
    at fhlb.cmkt.CFM.p roxy.NetWireSer vice.NetWireSer vice.getNetWire s(getNetWires
    getNetWires1) in E:\Projects\Cap italMarkets\CFM \fhlb.cmkt.prox y\Web
    References\NetW ireService\Refe rence.cs:line 115
    at fhlb.cmkt.CFM.C ashFlowMonitor. getNetWiresSecu red()
    at fhlb.cmkt.CFM.C ashFlowMonitor. Page_Load(Objec t sender, EventArgs e)
    >
    Using ASP.NET 2.0 on IIS 6.0 (Windows Server 2003).
    >
    Any help will be greatly appreciated.
    >
    Thanks!

    Comment

    • =?Utf-8?B?VmlqYXk=?=

      #3
      RE: System.Net.WebE xception

      Thanks for the quick reply Bruce.

      Is it a timeout on the webpage that is calling the web service or is it a
      timeout that is occuring on the web service? What does it mean when you say
      "save the last results and reuse" ?

      Thanks!
      Vijay

      "bruce barker" wrote:
      this is normal. it just a timeout on a page request. you need to decide how
      to handle it. maybe save the last results and resuse.
      >
      -- bruce (sqlwork.com)
      >
      >
      "Vijay" wrote:
      >
      Hi,

      I am calling an external web service that returns some data which is being
      displayed on my ASP.NET page. This page refreshes every 60 seconds and pulls
      the updated data from the web service.

      The page works great for a few minutes and then all of a sudden throws the
      following error:

      System.Net.WebE xception: Unable to connect to the remote server --->
      System.Net.Sock ets.SocketExcep tion: A connection attempt failed because the
      connected party did not properly respond after a period of time, or
      established connection failed because connected host has failed to respond
      at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t,
      SocketAddress socketAddress)
      at System.Net.Sock ets.Socket.Inte rnalConnect(End Point remoteEP)
      at System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure,
      Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketSt ate
      state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
      --- End of inner exception stack trace ---
      at System.Net.Http WebRequest.GetR equestStream()
      at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
      methodName, Object[] parameters)
      at fhlb.cmkt.CFM.p roxy.NetWireSer vice.NetWireSer vice.getNetWire s(getNetWires
      getNetWires1) in E:\Projects\Cap italMarkets\CFM \fhlb.cmkt.prox y\Web
      References\NetW ireService\Refe rence.cs:line 115
      at fhlb.cmkt.CFM.C ashFlowMonitor. getNetWiresSecu red()
      at fhlb.cmkt.CFM.C ashFlowMonitor. Page_Load(Objec t sender, EventArgs e)

      Using ASP.NET 2.0 on IIS 6.0 (Windows Server 2003).

      Any help will be greatly appreciated.

      Thanks!

      Comment

      Working...