Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Timeout expired. Timeout expired.
Previous
 
Next
New Post
3/1/2010 3:51 PM
 

Looking at the forums this seems to be a hardy perennial -

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

I am running a very long SQL Sproc (12 minutes or so) and I simply wanted DNN to wait until this is finished, but this timout appeared after about 30 seconds and the error message appeared.

I have set every timeout setting that I know:-

   mobjScriptManager  = ScriptManager.GetCurrent(Me.Page)
   mobjScriptManager.AsyncPostBackTimeout = 3000
   Server.ScriptTimeout = 3000    
   Page.Session.Timeout() = 3000 

my connection string is set to :

"Data Source=nn.nnn.nn.nn;Initial Catalog=NNNNNNN;Persist Security Info=True;User ID=XXXX;Password=XXXXXXX;Connect Timeout=30000;pooling=true;Max Pool Size=200"   

I checked out my Scheduler but made no changes to any of the tasks (some were every 2 minutes).

I checked out the Log file but there was nothing untoward there or on the limits.

Finally I took the call to the Sproc out of using my DNN Provider and made my own connection thus:-

    

    sSqlConnectionString = itProject_GetDBConnectionSettings(gstrMISC_CONNECTIONSTRING)  ' get web config connection setting

    strSQLCmd    = "itproject_TS_Create_MembersAndContacts " & _
                                          "'" & Country & "'" & _
                                          ", " & _
                                          PartnerId) & _
                                          ", " & _
                                          & Language  & _    
                                          ", " & _
                                          intBlockNumber   
                 
    
    SqlConn      = New SqlConnection(sSqlConnectionString) 
    SqlCmd       = New SqlCommand(strSQLCmd, SqlConn)
    SqlCmd.CommandTimeout = 0                                ' <<<<<< This is what made  it WORK! <<<<<<<<<<<<<<<<
    SqlCmd.CommandType = CommandType.Text
    SqlConn.Open()
    SqlCmd.ExecuteNonQuery()                                        ' This is where it runs the 12-15 minute Sproc and where it Timed Out
    SqlConn.Close()

[PS Initially, I did try changing the Connection String to 0 from 30000 but it had no effect and still timed out.]

Hope this helps other developers. - Nick Chance, itProject, North Sydney

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Timeout expired. Timeout expired.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out