473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP.NET recycles a lot of times after software deployment

Hi everybody,

I'm new to this site and regarding the quality of the threads I'm confident
that I will get some help here. Here is the case:

We have a huge asp.net c# (101 bins and more than 4.000 aspx)(.net
framework 1.0, latest sp) internet site in W2K plataform. And since last
week, every time someone deploys new pages or assemblies the site goes
made. It recycles every 10 to 20 minutes until you go and reboot the
machine.

Our deployment time uses this procedure:
- stop WWW.
- execute iisreset.
- clean C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempora ry ASP.NET Files
- make the deploy (xcopy the files).
- start WWW.

Last Friday I managed to understand what was going on, they have misplaced
the files and created copies of the directories in wrong places and I think
..net had a hard time serving this application. However yesterday it started
recycling again and for my total surprise nothing seems to be wrong with
the site.

Our application saves logs in the event viewer like that for each recycle:
Event Type: Warning
Event Source: portal.WEB
Event Category: (200)
Event ID: 111
Date: 12/4/2005
Time: 10:49:00
User: N/A
Computer: CAUDES2KATIX
Description:
<ACALog><LogCategory>AppAudit</LogCategory><Header>ClientApplication -
Application End</Header><EventID>111</EventID><Body><Message>Finalizando
aplica??o:

at App.MCA.Global.Application_End(Object, EventArgs)
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean, Assembly, Boolean)
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags,
Binder, Object[], CultureInfo)
at System.Web.HttpApplication.ProcessSpecialRequest(H ttpContext,
MethodInfo, Int32, Object, EventArgs, HttpSessionState)
at System.Web.HttpApplicationFactory.FireApplicationO nEnd()
at System.Web.HttpApplicationFactory.Dispose()
at System.Web.HttpRuntime.Dispose()
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAp pDomain(Object)
</Message><Src>Global.Application_End</Src><contextItems
/></Body><Severity>2</Severity><MachineName>CAUDES2KATIX</MachineName><DateTime>12/4/2005
10:49:00</DateTime></ACALog>

Microsoft say that when you get ReleaseResourcesAndUnloadAppDomain() is
because you have changed something on the application's directory (bins,
web.config, machine.config, etc) and this is asp.net way to week itself up-
to-date.

We were supposed to get just one recycle per deployment and we are getting
more than 20!

I thank any idea you can give me.

Eddie

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
2 1449
A shot in the dark, take a look at:
http://www.aspnetresources.com/artic...roduction.aspx

and take a long hard read at
"Maximum Number Of Recompiles"
and
"Maximum Number Of Pages Per Batch Compilation"

You might want to increase both amounts, because by default, after 15
recompiles, ASP.Net will recycle...and if you have 4 000 aspxs, assuming
they are all in the same folder, that's atleast 4 recompiles..if they aren't
in the same folder, simply JIT'ing all aSPX files is likely enough to go
over the 15 recompile treashold and cause the app to restart..
btw...101 bins and 4000 aspx pages..likely needs some rearchitecturing...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Eduardo Crivelli via DotNetMonster.com" <fo***@nospam.DotNetMonster.com>
wrote in message news:d7******************************@DotNetMonste r.com...
Hi everybody,

I'm new to this site and regarding the quality of the threads I'm confident that I will get some help here. Here is the case:

We have a huge asp.net c# (101 bins and more than 4.000 aspx)(.net
framework 1.0, latest sp) internet site in W2K plataform. And since last
week, every time someone deploys new pages or assemblies the site goes
made. It recycles every 10 to 20 minutes until you go and reboot the
machine.

Our deployment time uses this procedure:
- stop WWW.
- execute iisreset.
- clean C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempora ry ASP.NET Files
- make the deploy (xcopy the files).
- start WWW.

Last Friday I managed to understand what was going on, they have misplaced
the files and created copies of the directories in wrong places and I think .net had a hard time serving this application. However yesterday it started recycling again and for my total surprise nothing seems to be wrong with
the site.

Our application saves logs in the event viewer like that for each recycle:
Event Type: Warning
Event Source: portal.WEB
Event Category: (200)
Event ID: 111
Date: 12/4/2005
Time: 10:49:00
User: N/A
Computer: CAUDES2KATIX
Description:
<ACALog><LogCategory>AppAudit</LogCategory><Header>ClientApplication -
Application End</Header><EventID>111</EventID><Body><Message>Finalizando
aplica??o:

at App.MCA.Global.Application_End(Object, EventArgs)
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean, Assembly, Boolean)
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags,
Binder, Object[], CultureInfo)
at System.Web.HttpApplication.ProcessSpecialRequest(H ttpContext,
MethodInfo, Int32, Object, EventArgs, HttpSessionState)
at System.Web.HttpApplicationFactory.FireApplicationO nEnd()
at System.Web.HttpApplicationFactory.Dispose()
at System.Web.HttpRuntime.Dispose()
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAp pDomain(Object)
</Message><Src>Global.Application_End</Src><contextItems
/></Body><Severity>2</Severity><MachineName>CAUDES2KATIX</MachineName><DateT
ime>12/4/2005 10:49:00</DateTime></ACALog>

Microsoft say that when you get ReleaseResourcesAndUnloadAppDomain() is
because you have changed something on the application's directory (bins,
web.config, machine.config, etc) and this is asp.net way to week itself up- to-date.

We were supposed to get just one recycle per deployment and we are getting
more than 20!

I thank any idea you can give me.

Eddie

--
Message posted via http://www.dotnetmonster.com

Nov 19 '05 #2
Hi Karl,

thanks for your post.

I've already checked this link and had altered the web.config with this
line(<compilation defaultLanguage="c#" debug="false" />).

I need to give you more information about our set.
We have more than 4.000 aspx distributed into 15 directories plus one for
binaries ("\bin"). Each directory helds pages related to one business and
most of the time you need to combine features from pages from different
directories to acomplish one task. That's why he have such a huge
application (it's the intranet from some company).

When we deploy it, the content can be placed into any combination of
directories(e.g. deploy DirA, DirB and DirE; deploy just DirF; etc).

Some deploys, depending on the directories affected, contain more than 15
assemblies and in that case "Maximum Number Of Pages Per Batch Compilation"
could play a role in the problem we have. Even though I don't think that is
the case because he recycle aspnet before we deploy everything (that
procedure from the begining of the thread), for us is always as first
deployment. :(

Thanks anyway.

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #3

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

Similar topics

36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
8
by: noid droid | last post by:
Hi. I posted yesterday asking if C# lived up to the hype. Thus far the feedback has been all positive. (Thanks.) Can anyone suggest GOOD books for learning C# and the Visual Studio .NET IDE? ...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
2
by: Troglite | last post by:
I am attempting to research an error condition that I am experiencing with the Config Block in EntLib 1.0. I have an admin web page that I use to populate some config values. I then have a second...
0
by: Dana Morris | last post by:
Call for Participation OMG's First Annual Software-Based Communications (SBC) Workshop: From Mobile to Agile Communications http://www.omg.org/news/meetings/SBC2004/call.htm September 13-16,...
2
by: mphanke | last post by:
Hi, has anybody experience with how to update a software over eMail or WebServer? What would be the best way to do this? I'm fighting with this topic quiet a bit, but I really want to...
1
by: srivalli c via DotNetMonster.com | last post by:
Hi, When asp.net worker process or application pool recycles, is it guaranteed that the Session_End event fires for all active sessions? Any help is greatly appreciated. Thanks in advance....
0
by: Chris van de Steeg | last post by:
In iis6 there is this feature to recycle your appdomain at certain tresholds, great. But I recently ran into strange problems when my appdomain was recycled. When my application starts, it loops...
2
by: sudhaoncyberworld | last post by:
Hi Techies, I have created Setup & Deployment project and installing a windows application from that. Now i want to restrict the user to install my application only upto 3 times. After that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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...

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.