?
Solved

Browser Timeout

Posted on 2012-09-12
2
Medium Priority
?
582 Views
Last Modified: 2012-09-13
Have a .Net web with the code below which returns a simple number which I can add to a string.

The execution time on the code is about 10 seconds to get a number back from the server....very complex select on the other end.

Here's the deal...
I can run this fine in Google Chrome, Safari, and Mozilla...

But IE bombs out with an Execution Timeout message.

Current (our office platforms) is WInXP and IE8

This is the vb that gets the data back
    Private Function getEmailBlastCount(ByVal st As String, ByVal specialty As String, ByVal ckFederal As Boolean) As String
        Dim objConn As SqlConnection = New SqlConnection(System.Configuration.ConfigurationManager.AppSettings("ConnStr"))
        Dim oCom As New SqlCommand
        oCom.Connection = objConn
        oCom.CommandText = "usp_EmailsForSpecialtyStatesGetCount"
        oCom.CommandType = CommandType.StoredProcedure
        oCom.Parameters.Add(New SqlParameter("@State", SqlDbType.VarChar, 2)).Value = st
        oCom.Parameters.Add(New SqlParameter("@Specialty", SqlDbType.VarChar, 50)).Value = specialty
        oCom.Parameters.Add(New SqlParameter("@Nationwide", SqlDbType.Bit)).Value = ckFederal
        objConn.Open()
        Dim dR As SqlDataReader
        dR = oCom.ExecuteReader()
        dR.Read()

        If dR.HasRows Then
            Return "There are " & dR("emailBlastCount") & " emails in this blast"
        Else
            Return "There are <strong><u>NO</u></strong> emails in this blast"
        End If
        dR.Close()
        objConn.Close()
        objConn.Dispose()
        objConn = Nothing
        oCom = Nothing
    End Function

Open in new window

0
Comment
Question by:lrbrister
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 38392989
Is the timeout on client side or server side?
0
 

Author Closing Comment

by:lrbrister
ID: 38394573
Server side

These were commented out for some reason...

        <httpRuntime maxRequestLength="8192" executionTimeout="3600"/>
        <sessionState timeout="180"/>
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question