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. "Time Out Expire" problem

"Time Out Expire" problem

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

    Hi all, In my application, I m using a query which is quite lengthy.Some times give the message "Time Out Expire........".I am setting sqlCommand.commandTimeout=4000 but it is not working and still display the message frequently. can anybody help me,how to overcome this problem?

    L 1 Reply Last reply
    0
    • S souravghosh18

      Hi all, In my application, I m using a query which is quite lengthy.Some times give the message "Time Out Expire........".I am setting sqlCommand.commandTimeout=4000 but it is not working and still display the message frequently. can anybody help me,how to overcome this problem?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I think you page is expiring. Try following code.

      // Give it 1 hour = 3600 seconds
      Server.ScriptTimeout = 3600;

      Or you need to call long running operation with asynchronous call to that particular page. http://msmvps.com/blogs/jalam/archive/2007/11/22/performing-long-running-operation-with-asynchronous-page-in-asp-net-2-0.aspx[^] Hope this will help!

      Jinal Desai - LIVE Experience is mother of sage....

      S 1 Reply Last reply
      0
      • L Lost User

        I think you page is expiring. Try following code.

        // Give it 1 hour = 3600 seconds
        Server.ScriptTimeout = 3600;

        Or you need to call long running operation with asynchronous call to that particular page. http://msmvps.com/blogs/jalam/archive/2007/11/22/performing-long-running-operation-with-asynchronous-page-in-asp-net-2-0.aspx[^] Hope this will help!

        Jinal Desai - LIVE Experience is mother of sage....

        S Offline
        S Offline
        souravghosh18
        wrote on last edited by
        #3

        thanx 4 d reply, can u plz explain when i have to set Server.ScriptTimeout = 3600;

        L 1 Reply Last reply
        0
        • S souravghosh18

          thanx 4 d reply, can u plz explain when i have to set Server.ScriptTimeout = 3600;

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          You need to set it on application load event.

          Jinal Desai - LIVE Experience is mother of sage....

          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