473,893 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout Expired

I am working on Win2K Pro (SP4) with P4 2.80GHz, 256MB RAM & 20GB hard
disk (IIS5.0). I use Visual Web Developer 2005 Express Edition to
create & edit ASP.NET apps.

Whenever I log in to my m/c. & run any ASPX page in IE6.0 for the very
first time, I always get the following timeout expired error:

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

even if the ASPX code happens to be as simple as this:

<script runat="server">
Sub Page_Load(obj As Object, ea As EventArgs)
lblMsg.Text = "Hello World"
End Sub
</script>
<form runat="server">
<asp:Label ID="lblMsg" runat="server"/>
</form>

It is only when I refresh the page that the ASPX page gets executed
successfully & thereafter, I don't encounter this timeout expired error
any more. Let me iterate that this error gets generated only the first
time I open any ASPX page after logging in to my m/c.

What could be the cause of this eccentric behavior?

The timeout period in IIS is set to the default 90 seconds.

Nov 30 '06 #1
3 2241
<rn**@rediffmai l.comwrote in message
news:11******** *************@f 1g2000cwa.googl egroups.com...
What could be the cause of this eccentric behavior?
This is often due to inefficient code in Application_Sta rt()
Nov 30 '06 #2
Mark, I think you are right. When I commented out the code in
Application_Sta rt in Global.asax, I am no longer get the timeout error
when I run a ASPX page for the first time in IE but the only 1-line
code I had in the Application_Sta rt is this:

Application("Ap pStartTime") = System.DateTime .Now

Is this an inefficient code? I don't think so. How could this 1-line
code be the one & only reason for ASP.NET to generate the timeout
error?

Mark Rae wrote:
<rn**@rediffmai l.comwrote in message
news:11******** *************@f 1g2000cwa.googl egroups.com...
What could be the cause of this eccentric behavior?

This is often due to inefficient code in Application_Sta rt()
Dec 5 '06 #3
<rn**@rediffmai l.comwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.com...
Mark, I think you are right. When I commented out the code in
Application_Sta rt in Global.asax, I am no longer get the timeout error
when I run a ASPX page for the first time in IE but the only 1-line
code I had in the Application_Sta rt is this:

Application("Ap pStartTime") = System.DateTime .Now

Is this an inefficient code? I don't think so.
Well, not at first glance anyway...
How could this 1-line code be the one & only reason for ASP.NET
to generate the timeout error?
I'm afraid I don't know...

Try replacing the line with the following and see which, if any, exhibits
the same behaviour:

1) string strTest = String.Empty:

2) Application["strTest"] = String.Empty;

3) DateTime dtmTest = new DateTime(2006, 12, 5);

4) Application["dtmTest"] = new DateTime(2006, 12, 5);

5) DateTime dtmTest = System.Date.Now ;

6) DateTime dtmTest = System.Date.Now ;
Application["dtmTest"] = dtmTest.
Remember to recycle the app each time to force Application_Sta rt to fire.
Dec 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1816
by: Silvia | last post by:
I have a application web and when execute this for a long time generated this error: Server Error in '/RAIMServer' Application. ----------------------------------------------------------- --------------------- Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and
5
13280
by: Jason | last post by:
Hi all I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use the "Connection Timeout=2400" string in the SqlConnection connections string - disabled connection pooling.
2
4599
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET Here's the scenario: 1. .NET Windows Client on a remote machine makes a web service call to update tables on a Web Server running SQL Server 2000. 2. The Update is updating about 1000 - 3000 records doing simple update statements like "Update...
4
4917
by: Nick | last post by:
Hi I am a little stuck. I have a web app which uses cookieless session management. I would like to inform a user when their session has ended but cannot work out how to implement. I thought of placing a redirect into the Session_End method in the global file but this does not work. To my understanding a session will end when it has been idle for the time specified in the web.config file. The user may still have the
3
14007
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection connection = new SqlConnection(ConfigurationSettings.AppSettings)) {
4
13204
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying to login (obviously it's using ASPNETDB.mdf). Any ideas? Server Error in '/' Application. --------------------------------------------------------------------------------
0
2043
by: bonita | last post by:
If I add the code for user to download the file (e.g. if(File.Exists(FILE_NAME)){......}), the ASP.NET will give the following timeout error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. It seems that the download file code is executing before letting the previous code to finish. Even the message print code (message.Text="...";) is not executed.
1
45194
by: Ron | last post by:
Hi, I had a stored procedure on SQL 2000 server to run calculation with large amount of data. When I called this stored procedure via System.Data.SqlClient.SqlCommand on production, i got error as: (i tried to run the stored procedure on query analyzer, and it works well) Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred...
1
5178
by: Scorpion657 | last post by:
Hey I really need help. I have a Website coded using ASP.NET and VB and for some reason, i'm getting the following error when I try to upload or access a large file which is stored in the database. It was working fine when I was runing the site on the localhost. I added the following line to the web.config file to increase the timeout: <httpRuntime maxRequestLength="1048576" executionTimeout="3600"/> I also added: connection timeout =...
0
9987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11245
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10469
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9647
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7175
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5859
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6066
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4281
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.