473,800 Members | 2,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\Micros oft.NET\Framewo rk\v1.0.3705\Te mporary 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><LogCat egory>AppAudit</LogCategory><He ader>ClientAppl ication -
Application End</Header><EventID >111</EventID><Body>< Message>Finaliz ando
aplica??o:

at App.MCA.Global. Application_End (Object, EventArgs)
at System.Reflecti on.RuntimeMetho dInfo.InternalI nvoke(Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean, Assembly, Boolean)
at System.Reflecti on.RuntimeMetho dInfo.InternalI nvoke(Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject, BindingFlags,
Binder, Object[], CultureInfo)
at System.Web.Http Application.Pro cessSpecialRequ est(HttpContext ,
MethodInfo, Int32, Object, EventArgs, HttpSessionStat e)
at System.Web.Http ApplicationFact ory.FireApplica tionOnEnd()
at System.Web.Http ApplicationFact ory.Dispose()
at System.Web.Http Runtime.Dispose ()
at System.Web.Http Runtime.Release ResourcesAndUnl oadAppDomain(Ob ject)
</Message><Src>Gl obal.Applicatio n_End</Src><contextIte ms
/></Body><Severity> 2</Severity><Machi neName>CAUDES2K ATIX</MachineName><Da teTime>12/4/2005
10:49:00</DateTime></ACALog>

Microsoft say that when you get ReleaseResource sAndUnloadAppDo main() 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 1470
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 rearchitecturin g...

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.c om" <fo***@nospam.D otNetMonster.co m>
wrote in message news:d7******** *************** *******@DotNetM onster.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\Micros oft.NET\Framewo rk\v1.0.3705\Te mporary 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><LogCat egory>AppAudit</LogCategory><He ader>ClientAppl ication -
Application End</Header><EventID >111</EventID><Body>< Message>Finaliz ando
aplica??o:

at App.MCA.Global. Application_End (Object, EventArgs)
at System.Reflecti on.RuntimeMetho dInfo.InternalI nvoke(Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean, Assembly, Boolean)
at System.Reflecti on.RuntimeMetho dInfo.InternalI nvoke(Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject, BindingFlags,
Binder, Object[], CultureInfo)
at System.Web.Http Application.Pro cessSpecialRequ est(HttpContext ,
MethodInfo, Int32, Object, EventArgs, HttpSessionStat e)
at System.Web.Http ApplicationFact ory.FireApplica tionOnEnd()
at System.Web.Http ApplicationFact ory.Dispose()
at System.Web.Http Runtime.Dispose ()
at System.Web.Http Runtime.Release ResourcesAndUnl oadAppDomain(Ob ject)
</Message><Src>Gl obal.Applicatio n_End</Src><contextIte ms
/></Body><Severity> 2</Severity><Machi neName>CAUDES2K ATIX</MachineName><Da teT
ime>12/4/2005 10:49:00</DateTime></ACALog>

Microsoft say that when you get ReleaseResource sAndUnloadAppDo main() 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(<compilati on 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
6408
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 something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
8
1938
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? If there is a book that covers both, that would be great. Also, is it necessary for me to learn a lot about the .NET framework that wouldn't also be covered in one of the books? If I can find a book that'll get me up and running with the IDE...
383
12274
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 poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they didn't spend their own money to get companies to
2
1590
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 web pages that pulls those values in order to perform some stuff. Works like a charm with and without encryption. BUT... everytime the app pool is recycled in IIS 6, the app block throws an error when attempting to read the config values. The...
0
2500
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, 2004 Washington, DC USA Introduction
2
1686
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 implement this - would really help me. Best Regards,
1
1302
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. Srivalli.
0
1133
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 through all the assemblies it gets from System.AppDomain.CurrentDomain.GetAssemblies(). This works great when the application starts for the first time, I really do get all assemblies that are in my bin-folder. However, when my worker-process...
2
1352
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 it should prompt to the user to download again from the site. Can anyone guide me in this.
0
9689
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
9550
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
10495
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
10269
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
10248
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
10032
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...
1
7573
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
6811
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();...
3
2942
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.