473,657 Members | 2,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Restart Problem

We are experiencing the following problems concerning ASP.NET: our
ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0
environment, experience frequent session timeout problem. After tracing, we
find that it should be caused by "ASP.NET Application Restart" (proved by
incremented counter for "Applicatio n Restarts" of "ASP.NET 1.1.4322" in
"Performanc e" whenever the timeout happens).

From MSDN documentation, we find that the possible reasons are:
- changes in web.config or machine.config
- changes in files in \bin folder
- new folder under web application folder
- changes of files under web application folder
Besides, MS KB also tells us of the possible effect of anti-virus
product. However, we have eliminated the above factors (no files added /
modified, anti-virus product shut down), and the problem remains.

So, we want to ask for the following:
1. We want to know the exact / detailed reason why asp.net application
would restart (e.g. if caused by files changes, which file? what application
changes that file?), is there any place / log file we can find for that?
2. is there any reason behinds those listed above that would cause the
restart?
3. Any method to turn off the ASP.NET restart function
4. If it is turned off, what will be the side effect

The following is more details of the OS environment:
- Windows Server 2000 Sp4 (Eng.)
- .NET 1.1 (no hotfix applied explicitly unless downloaded through windows
update)
- IIS 5.0 (no hotfix applied explicitly unless downloaded through windows
update)

Nov 18 '05 #1
18 5364
have a look at your application log on the webserver. it lists the reason
for the asp.net process restart.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"amdishigh" <am*******@news groups.nospam> wrote in message
news:40******** *************** ***********@mic rosoft.com...
We are experiencing the following problems concerning ASP.NET: our
ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0
environment, experience frequent session timeout problem. After tracing,
we
find that it should be caused by "ASP.NET Application Restart" (proved by
incremented counter for "Applicatio n Restarts" of "ASP.NET 1.1.4322" in
"Performanc e" whenever the timeout happens).

From MSDN documentation, we find that the possible reasons are:
- changes in web.config or machine.config
- changes in files in \bin folder
- new folder under web application folder
- changes of files under web application folder
Besides, MS KB also tells us of the possible effect of anti-virus
product. However, we have eliminated the above factors (no files added /
modified, anti-virus product shut down), and the problem remains.

So, we want to ask for the following:
1. We want to know the exact / detailed reason why asp.net application
would restart (e.g. if caused by files changes, which file? what
application
changes that file?), is there any place / log file we can find for that?
2. is there any reason behinds those listed above that would cause the
restart?
3. Any method to turn off the ASP.NET restart function
4. If it is turned off, what will be the side effect

The following is more details of the OS environment:
- Windows Server 2000 Sp4 (Eng.)
- .NET 1.1 (no hotfix applied explicitly unless downloaded through windows
update)
- IIS 5.0 (no hotfix applied explicitly unless downloaded through windows
update)


Nov 18 '05 #2
Hi Alvin,

Thank you for your reply. But what source should we look at? Is it "ASP.NET [Version No]" (our version no is 1.1.4322.0)? Our problem - ASP.NET AppDomain Restart - does not make a new entry there of this source. Should we configure any switch to turn this logging on?

Regards,
Patrick

"Alvin Bruney [MVP]" wrote:
have a look at your application log on the webserver. it lists the reason
for the asp.net process restart.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"amdishigh" <am*******@news groups.nospam> wrote in message
news:40******** *************** ***********@mic rosoft.com...
We are experiencing the following problems concerning ASP.NET: our
ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0
environment, experience frequent session timeout problem. After tracing,
we
find that it should be caused by "ASP.NET Application Restart" (proved by
incremented counter for "Applicatio n Restarts" of "ASP.NET 1.1.4322" in
"Performanc e" whenever the timeout happens).

From MSDN documentation, we find that the possible reasons are:
- changes in web.config or machine.config
- changes in files in \bin folder
- new folder under web application folder
- changes of files under web application folder
Besides, MS KB also tells us of the possible effect of anti-virus
product. However, we have eliminated the above factors (no files added /
modified, anti-virus product shut down), and the problem remains.

So, we want to ask for the following:
1. We want to know the exact / detailed reason why asp.net application
would restart (e.g. if caused by files changes, which file? what
application
changes that file?), is there any place / log file we can find for that?
2. is there any reason behinds those listed above that would cause the
restart?
3. Any method to turn off the ASP.NET restart function
4. If it is turned off, what will be the side effect

The following is more details of the OS environment:
- Windows Server 2000 Sp4 (Eng.)
- .NET 1.1 (no hotfix applied explicitly unless downloaded through windows
update)
- IIS 5.0 (no hotfix applied explicitly unless downloaded through windows
update)



Nov 18 '05 #3
Hi Patrick,

As for the asp.net application restart problem. Yes, the reasons you listed
in the first message covered almost all the general causes. In addition,
you may also have a look at the <processModel > setting in the
machine.config file and the this element has some certain attributes for
example, the
1. responseDeadloc kInterval attribute which specifies the time interval,
in standard process model format (hr:min:sec), after which the process will
be restarted if the following conditions are met:
a.There are queued requests.
b.There has not been a response during this interval. The default is 3
minutes.

2.memoryLimit attribute which specifies the maximum allowed memory size,
as a percentage of total system memory, that the worker process can consume
before ASP.NET launches a new process and reassigns existing requests. The
default is 60 percent. If the application's memeory use exceed this
limitation, the application will also restart.

#<processModel > Element
http://msdn.microsoft.com/library/en...cessmodelSecti
on.asp?frame=tr ue

In addition, generally such application restart behavior may have some logs
info in the Server's EventViewers. You can have a further check in the
Application node of the EventViewer to see whether it can provide any
clues. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #4
Hi Steven,

Thx for your reply. Concerning the "processMod el" setting, is this controlling the "worker process" restart and/or application restart? From my understanding, it would lead to worker process start but not application restart; and my monitoring shows we are experiencing session timeout coz of application restart.

For the "applicatio n log" in event log, what source should we monitor for? Is it "ASP.NET [version]"? Searching for this yields not much result; the only entries we found are "asp.net unexpectedly ended" that appear when aspnet_wp.exe is killed in task manager. If that's not the correct source, what else should we look at? We are getting quite many / frequent new entries in application log so it would be quite difficult to locate the exact entries should the source not known.

Thank in advance!
"Steven Cheng[MSFT]" wrote:
Hi Patrick,

As for the asp.net application restart problem. Yes, the reasons you listed
in the first message covered almost all the general causes. In addition,
you may also have a look at the <processModel > setting in the
machine.config file and the this element has some certain attributes for
example, the
1. responseDeadloc kInterval attribute which specifies the time interval,
in standard process model format (hr:min:sec), after which the process will
be restarted if the following conditions are met:
a.There are queued requests.
b.There has not been a response during this interval. The default is 3
minutes.

2.memoryLimit attribute which specifies the maximum allowed memory size,
as a percentage of total system memory, that the worker process can consume
before ASP.NET launches a new process and reassigns existing requests. The
default is 60 percent. If the application's memeory use exceed this
limitation, the application will also restart.

#<processModel > Element
http://msdn.microsoft.com/library/en...cessmodelSecti
on.asp?frame=tr ue

In addition, generally such application restart behavior may have some logs
info in the Server's EventViewers. You can have a further check in the
Application node of the EventViewer to see whether it can provide any
clues. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5
Hi Patrick,

Thanks for your followup. Yes, the <processModel > limitations I mentioned
is concerned with asp.net process's recycle issue. Since you mentioned that
your application only restart the application domain, yes? How do you find
this behavior? Just by noticing that the sessionstates are lost?
I think you can try adding some codes in the Global object's
Application_Sta rt event and write a log file to see whether the application
is really random restarted and also the Server.GetLastE rror api may help
provide some info on whether there is any error at that time.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #6
Hi Patrick,

Since you found that the "Applicatio n Restart" counter increase in your
performance monitor, how much is its top value? Also, are there many other
asp.net web applications running on this machine? The "Applicatio n Resart"
counter may log all the applications on the server's restart event.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #7
Hi Steven,

The server host two ASP.NET application; and two of them exhibit the same session timeout problem. And the counter value would keep incrementing until the server is rebooted. The top value we have noticed of is around 80 times. One more thing worth to mention is that the "worker process restart" is always very low (always 0; seldom incresed to 2 -3); so i think we can eliminate the chance that the session timeout is actually caused by worker process restart but mistakenly thought as caused by application restart?

Regards,
Patrick

"Steven Cheng[MSFT]" wrote:
Hi Patrick,

Since you found that the "Applicatio n Restart" counter increase in your
performance monitor, how much is its top value? Also, are there many other
asp.net web applications running on this machine? The "Applicatio n Resart"
counter may log all the applications on the server's restart event.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #8
Hi Patrick,

Thanks for your reply. Then, are there any unhandled exceptions occur in
the applicatoin? As far as I know ,when there is unhandled exception occur
in application, the current session will also ended and a new one start.
In addition, does the problem occur when you're visiting some particular
pages in the application? Or is that any particular operations in the web
application which is possbile to cause the restart?
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #9
Hi Steven,

What type of "unhandled exception" would trigger this? We've experienced some type of unhandled exception in our application that would cause the notorious yellow error page (showing the details what errors occured and where) to appear. Is there some other more serious exception that would trigger the application to restart? And, in that case, is there any exception handler that can be defined on the application, like in global.asax, that can capture such unhandled exception? Thank you very much!

Regards,
Patrick

"Steven Cheng[MSFT]" wrote:
Hi Patrick,

Thanks for your reply. Then, are there any unhandled exceptions occur in
the applicatoin? As far as I know ,when there is unhandled exception occur
in application, the current session will also ended and a new one start.
In addition, does the problem occur when you're visiting some particular
pages in the application? Or is that any particular operations in the web
application which is possbile to cause the restart?
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #10

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

Similar topics

3
7801
by: alexB | last post by:
On my ASP.NET application, restarting the application through IIS doesn't always fire the Application_Start() event. Is there a trick to this? Restarting IIS is not an option since there are other applications on the machine.
1
2226
by: Piotr Trawiñski | last post by:
I have this notorious problem: at some point pgsql simply hangs up and requires a restart. --------------------------------------------------------------------------- ------- homer:/usr/share/doc/postgresql-contrib# /etc/init.d/postgresql restart Restarting PostgreSQL database: postmaster Stopped /usr/lib/postgresql/bin/postmaster (pid 14243 14245 14247 14750 14811 1489 15569 15570 15573 15584 15643 15644 15665 15800 15801 15804 15817...
0
348
by: amdishigh | last post by:
We are experiencing the following problems concerning ASP.NET: our ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0 environment, experience frequent session timeout problem. After tracing, we find that it should be caused by "ASP.NET Application Restart" (proved by incremented counter for "Application Restarts" of "ASP.NET 1.1.4322" in "Performance" whenever the timeout happens). From MSDN documentation, we find...
14
25113
by: iceman | last post by:
Hello, I have a windows service. I want to restart it after every 24 hour. Is it possible to restart the service programmatically(from the service itself) using the sercvice controller object? Or should i chose some other approach? Any ideas? Thanx for all help. - Iceman
5
11102
by: scorpion53061 | last post by:
Is there a way that anyone knows to force a vb.net program to shut down and then restart itself?
3
2287
by: Matt | last post by:
Is there an 'easy' way to have a service stop and restart itself? I currently have a seperate service running who's job is to watch the other service and restart it if there is a problem... can I eliminate that one and have the service restart itself? Thanks, Matt
0
3376
by: koolestj | last post by:
I am trying to understand why a server restart would cause mod_jk to not find a worker. I checked all tomcat workers were running and I was able to telnet to the ajp port on each app server. Just to give background I have 1 web server that is running apache with mod_jk for load balancing. The apache web server is configured to run as a Service and is setup to run Automatically. I have 5 tomcat workers (app engines) that serve http requests...
4
7172
by: yxq | last post by:
Hello, I want to kill the Explorer process, after Explorer process has been killed, it will restart automatically immediately. How to disable it restart automatically? for example, in Windows Task Manager, you can kill explorer process, but it will not restart automatically. My code: ///////////////////////////////////////////// For Each ObjPro As Process In Process.GetProcessesByName("EXPLORER")
1
4609
by: Sriram Srivatsan | last post by:
Hi We are trying to build an application where we render some of the .aspx pages from the database using a class derived from System.Web.Hosting.VirtualPathProvider. Users configure the contents of the page at runtime via the web interface and we do a XSLT transformation and store the contents of the .aspx pages in the database. The .aspx pages are hooked to a well known code behind in an assembly that is deployed as a assembly in the...
0
8823
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
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8603
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
7320
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...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
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.