Timeout error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J

    #1

    Timeout error

    How can I prevent the error of...

    Timeout expired. The timeout period elapsed prior to completion of the
    operation or the server is not responding.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information
    about the error and where it originated in the code.

    Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired. The
    timeout period elapsed prior to completion of the operation or the server is
    not responding.

    The program is returning a quite hefty amount of data, which takes about 40
    seconds to retrieve. My session timeouts are set to 900 seconds, but I've
    been told I can programatically change it via asp.net.

    Any ideas?

    TIA


  • Marina

    #2
    Re: Timeout error

    This is SQL timeout - not an asp.net session timeout. The 2 are not related.

    Set the CommandTimeout property on your SqlCommand object.

    "J" <nospam> wrote in message
    news:%23$$wjCkZ DHA.1832@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > How can I prevent the error of...
    >
    > Timeout expired. The timeout period elapsed prior to completion of the
    > operation or the server is not responding.
    > Description: An unhandled exception occurred during the execution of the
    > current web request. Please review the stack trace for more information
    > about the error and where it originated in the code.
    >
    > Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired.[/color]
    The[color=blue]
    > timeout period elapsed prior to completion of the operation or the server[/color]
    is[color=blue]
    > not responding.
    >
    > The program is returning a quite hefty amount of data, which takes about[/color]
    40[color=blue]
    > seconds to retrieve. My session timeouts are set to 900 seconds, but I've
    > been told I can programatically change it via asp.net.
    >
    > Any ideas?
    >
    > TIA
    >
    >[/color]


    Comment

    • J

      #3
      Re: Timeout error

      Thank you.


      "Marina" <zlatkinam@nosp am.hotmail.com> wrote in message
      news:e6ElFvkZDH A.1832@TK2MSFTN GP09.phx.gbl...[color=blue]
      > This is SQL timeout - not an asp.net session timeout. The 2 are not[/color]
      related.[color=blue]
      >
      > Set the CommandTimeout property on your SqlCommand object.
      >
      > "J" <nospam> wrote in message
      > news:%23$$wjCkZ DHA.1832@TK2MSF TNGP10.phx.gbl. ..[color=green]
      > > How can I prevent the error of...
      > >
      > > Timeout expired. The timeout period elapsed prior to completion of the
      > > operation or the server is not responding.
      > > Description: An unhandled exception occurred during the execution of the
      > > current web request. Please review the stack trace for more information
      > > about the error and where it originated in the code.
      > >
      > > Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired.[/color]
      > The[color=green]
      > > timeout period elapsed prior to completion of the operation or the[/color][/color]
      server[color=blue]
      > is[color=green]
      > > not responding.
      > >
      > > The program is returning a quite hefty amount of data, which takes about[/color]
      > 40[color=green]
      > > seconds to retrieve. My session timeouts are set to 900 seconds, but[/color][/color]
      I've[color=blue][color=green]
      > > been told I can programatically change it via asp.net.
      > >
      > > Any ideas?
      > >
      > > TIA
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Giscard

        #4
        Re: Timeout error

        "J" <nospam> wrote in message news:<#$$wjCkZD HA.1832@TK2MSFT NGP10.phx.gbl>. ..[color=blue]
        > How can I prevent the error of...
        >
        > Timeout expired. The timeout period elapsed prior to completion of the
        > operation or the server is not responding.
        > Description: An unhandled exception occurred during the execution of the
        > current web request. Please review the stack trace for more information
        > about the error and where it originated in the code.
        >
        > Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired. The
        > timeout period elapsed prior to completion of the operation or the server is
        > not responding.
        >
        > The program is returning a quite hefty amount of data, which takes about 40
        > seconds to retrieve. My session timeouts are set to 900 seconds, but I've
        > been told I can programatically change it via asp.net.
        >
        > Any ideas?
        >
        > TIA[/color]

        Set your CommandTimeout to a few hundred seconds. Setting it to 0
        should be infinite but there is a bug in .Net and this functionality
        doesn't work. Bump your timeout up to say 100 (its in seconds).
        Browsers (clients) don't timeout once they have a connection
        established, ignore the fools on the rest of this thread.

        Comment

        Working...