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. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
5 Posts 5 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.
  • N Offline
    N Offline
    ncsubbu
    wrote on last edited by
    #1

    Hi I am using sqlhelper class for dataaccess.I am retriving records from view.The records more than 20,000.In this case i got timeout expired.i increase the connectiontimeout is 120sec.If any solution to solve this problem.

    your's subbu

    T A F 3 Replies Last reply
    0
    • N ncsubbu

      Hi I am using sqlhelper class for dataaccess.I am retriving records from view.The records more than 20,000.In this case i got timeout expired.i increase the connectiontimeout is 120sec.If any solution to solve this problem.

      your's subbu

      T Offline
      T Offline
      Tamer Oz
      wrote on last edited by
      #2

      Try setting commands timeout property to a higher value

      1 Reply Last reply
      0
      • N ncsubbu

        Hi I am using sqlhelper class for dataaccess.I am retriving records from view.The records more than 20,000.In this case i got timeout expired.i increase the connectiontimeout is 120sec.If any solution to solve this problem.

        your's subbu

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        ncsubbu wrote:

        The records more than 20,000.In this case i got timeout expired.

        Why you are trying to retreive this much of data ? Try to use some filter criteria to minimize the records. If you have enoung time out, check the process in backend. Where its taking time, Use Breakpoint and Debug to find it out. Or Profile your Query. One more suggestion, please don't hit database frequently for this. It will impact your Performacne badly. Try to use caching for improve the performance !

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        1 Reply Last reply
        0
        • N ncsubbu

          Hi I am using sqlhelper class for dataaccess.I am retriving records from view.The records more than 20,000.In this case i got timeout expired.i increase the connectiontimeout is 120sec.If any solution to solve this problem.

          your's subbu

          F Offline
          F Offline
          Fayu
          wrote on last edited by
          #4

          Try creating an index on the table columns. that should help increase performance.

          C 1 Reply Last reply
          0
          • F Fayu

            Try creating an index on the table columns. that should help increase performance.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            While that may work, it doesn't address the insanity of a web page asking for 20,000 records...

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            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