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 error...

Timeout expired error...

Scheduled Pinned Locked Moved ASP.NET
helpsysadmin
4 Posts 3 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
    specialdreamsin
    wrote on last edited by
    #1

    Hi all, In my Web Application, when I am filling a DataSet its giving following error. Regarding this I have searched in Forum. But they told about Command Object timeout property. But I am using Data Adapter. Error : 'Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding' My Code is : Public Sub FillDS(ByVal ds As DataSet, ByVal TblName As String, ByVal Qry As String)       If Not ds.Tables(TblName) Is Nothing Then ds.Tables(TblName).Clear()       DA = New SqlDataAdapter(Qry, Con)       DA.Fill(ds, TblName) End Sub Please help me out.. Ramesh Sambari

    Knowledge is like honey. Collect it, to make life sweet.

    M 1 Reply Last reply
    0
    • S specialdreamsin

      Hi all, In my Web Application, when I am filling a DataSet its giving following error. Regarding this I have searched in Forum. But they told about Command Object timeout property. But I am using Data Adapter. Error : 'Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding' My Code is : Public Sub FillDS(ByVal ds As DataSet, ByVal TblName As String, ByVal Qry As String)       If Not ds.Tables(TblName) Is Nothing Then ds.Tables(TblName).Clear()       DA = New SqlDataAdapter(Qry, Con)       DA.Fill(ds, TblName) End Sub Please help me out.. Ramesh Sambari

      Knowledge is like honey. Collect it, to make life sweet.

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      You need to set this property:

      DA.SelectCommand.CommandTimeout

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      S 1 Reply Last reply
      0
      • M Manas Bhardwaj

        You need to set this property:

        DA.SelectCommand.CommandTimeout

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

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

        Thanks for your reply Manas, But Its not working... Earlier it was waiting for 30 sec. and giving TimeOut Expired. Now it is waiting for 1 minute 30 Sec. But same error is coming... Error : Sys.WebForms.PageRequestManagerTimeOutException: The Server request timed out. Please reply me... Ramesh Sambari

        Knowledge is like honey. Collect it, to make life sweet.

        R 1 Reply Last reply
        0
        • S specialdreamsin

          Thanks for your reply Manas, But Its not working... Earlier it was waiting for 30 sec. and giving TimeOut Expired. Now it is waiting for 1 minute 30 Sec. But same error is coming... Error : Sys.WebForms.PageRequestManagerTimeOutException: The Server request timed out. Please reply me... Ramesh Sambari

          Knowledge is like honey. Collect it, to make life sweet.

          R Offline
          R Offline
          r a m e s h
          wrote on last edited by
          #4

          This error can be coming due to Connection Pooling in the database server. When you open a connection in your code, check whether you properly closed that connection. Check sp_who(if it is SQL Server) to see the number of connection opened in the database.

          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