473,395 Members | 1,578 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.

any caching experts please?

hi,

i know that when i browse to a website for the 1st time the code gets
compiled into a dll and is cached. but this dll gets removed from cache
after a period of inactivity, right?

someone told me it is possible to control the length of time the dll is
cached in the web.config file?

is this correct, and can anyone give me an example of how to do it?

thanks.
Nov 18 '05 #1
3 956
suzy wrote:
hi,

i know that when i browse to a website for the 1st time the code gets
compiled into a dll and is cached. but this dll gets removed from cache
after a period of inactivity, right?

someone told me it is possible to control the length of time the dll is
cached in the web.config file?

is this correct, and can anyone give me an example of how to do it?


The ASPX file gets parsed and compiled into a DLL the first time the
page is hit. The DLL is written to a subdirectory under:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files

That same DLL will be used from there on, until the ASPX file (or some
other file the DLL is dependent on) is modified - there will not be
another parse & compile step unless the page is modified.

However, the DLL for the page will be unloaded from memory when the
application is closed, which can happen for several reasons:

The app needs to get recycled due to some detected problem
The app is shutdown due to being idle for 20 minutes (this is
configurable in web.config's <httpRuntime> element.
Etc.

--
mikeb
Nov 18 '05 #2
hi mike,

thanks for the reply.

i read the following article:
http://msdn.microsoft.com/library/de...imesection.asp

i tried setting the idleTimeOut attribute in the httpRunTime node of the
web.config. I put this within the system.web node but it came up with an
error saying idleTimeOut is an unrecognised attribute.

i thought it might be because the AppDomain wasn't enabled but even if I try
and set an attribute within httpRunTime called enable and set it to "true"
it can't recognise that either.

any idea why?

thanks

"mikeb" <ma************@nospam.mailnull.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
suzy wrote:
hi,

i know that when i browse to a website for the 1st time the code gets
compiled into a dll and is cached. but this dll gets removed from cache
after a period of inactivity, right?

someone told me it is possible to control the length of time the dll is
cached in the web.config file?

is this correct, and can anyone give me an example of how to do it?


The ASPX file gets parsed and compiled into a DLL the first time the
page is hit. The DLL is written to a subdirectory under:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files

That same DLL will be used from there on, until the ASPX file (or some
other file the DLL is dependent on) is modified - there will not be
another parse & compile step unless the page is modified.

However, the DLL for the page will be unloaded from memory when the
application is closed, which can happen for several reasons:

The app needs to get recycled due to some detected problem
The app is shutdown due to being idle for 20 minutes (this is
configurable in web.config's <httpRuntime> element.
Etc.

--
mikeb

Nov 18 '05 #3
suzy wrote:
hi mike,

thanks for the reply.

i read the following article:
http://msdn.microsoft.com/library/de...imesection.asp

i tried setting the idleTimeOut attribute in the httpRunTime node of the
web.config. I put this within the system.web node but it came up with an
error saying idleTimeOut is an unrecognised attribute.

i thought it might be because the AppDomain wasn't enabled but even if I try
and set an attribute within httpRunTime called enable and set it to "true"
it can't recognise that either.

any idea why?

It appears to be a documentation error.

You can try setting the idleTimeout (note that the capitalization is
different) attribute in the <processModel> element - note that this
works only in machine.config, and only on machines that use IIS versions
before 6.0.

If you're running on IIS 6, use the IIS Management tool to set the
idleTimeout.

"mikeb" <ma************@nospam.mailnull.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
suzy wrote:
hi,

i know that when i browse to a website for the 1st time the code gets
compiled into a dll and is cached. but this dll gets removed from cache
after a period of inactivity, right?

someone told me it is possible to control the length of time the dll is
cached in the web.config file?

is this correct, and can anyone give me an example of how to do it?


The ASPX file gets parsed and compiled into a DLL the first time the
page is hit. The DLL is written to a subdirectory under:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files

That same DLL will be used from there on, until the ASPX file (or some
other file the DLL is dependent on) is modified - there will not be
another parse & compile step unless the page is modified.

However, the DLL for the page will be unloaded from memory when the
application is closed, which can happen for several reasons:

The app needs to get recycled due to some detected problem
The app is shutdown due to being idle for 20 minutes (this is
configurable in web.config's <httpRuntime> element.
Etc.

--
mikeb


--
mikeb
Nov 18 '05 #4

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

Similar topics

5
by: R. Ian Lee | last post by:
I have an ASP.NET page that spawns a popup window using javascript's window.open. This works fine. It pops up, you enter some data, press save and everything saves as it should. But, if you...
3
by: moondaddy | last post by:
I have a site where I have only one page and lots of user controls. Rather than passing parameters into the page (mysite/default.aspx?MenuID=123), I pass in a url like this...
12
by: Ken Varn | last post by:
Is there anyway within my web application that I can have all browser caching turned off for all aspx pages sent by my IIS server? I need to have all caching off in order for certain things to...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
0
by: jason | last post by:
hi experts, support.microsoft.com/kb/917072 and http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/ As pointed out in these articles, users might get session variables belong to...
4
by: Henrik Dahl | last post by:
Hello! In my application I have a need for using a regular expression now and then. Often the same regular expression must be used multiple times. For performance reasons I use the...
2
by: Toni | last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server, but I have a problem. I try to do everything according to the instructions like this page here:...
0
by: Toni | last post by:
Hello! I'm trying to get caching work with ASP.NET 2.0 and SQL Server Express Edition 2005, but I have a problem and I can't figure out what I'm still doing wrong. I have enabled the database...
12
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using ASP.Net with an UpdatePanel. When the screen is exercised via a Web Test, the Web Test shows that the AJAX scripts are downloaded for every partial post back. My impression was that...
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
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...

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.