473,323 Members | 1,574 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,323 software developers and data experts.

Cache invalidate when creating a folder in app root directory

Hi guys,

i keep many items in cache such as onlineusers and ...
recently i build a page which create tempfolders in webapplication
root dir
but i findout that it invalidate cache and i hadn't use of any
CacheDependency at all ...

what's the problem ?

thanks in advance

Jul 3 '07 #1
4 1393
There is no problem. The behavior is by design. ASP.NET monitors the web site
root, files, subfolders and bin folder for changes. When something is
changed, the application recycles. That's what is "invalidating your cache".
You can consider creating your "tempfolders" outside of the application root,
or consider using a different approach to whatever it is you need to do.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Khafancoder" wrote:
Hi guys,

i keep many items in cache such as onlineusers and ...
recently i build a page which create tempfolders in webapplication
root dir
but i findout that it invalidate cache and i hadn't use of any
CacheDependency at all ...

what's the problem ?

thanks in advance

Jul 3 '07 #2
Thanks,
so you mean i can't create a temp folder at all ??
you know...maybe i could create temp folder outside of the application
root in local , but what abt share servers ?

i need to create tempfolder for extracing uploaded archive file on the
server

isn't any option to disable this behavior ??
On Jul 3, 10:56 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
There is no problem. The behavior is by design. ASP.NET monitors the web site
root, files, subfolders and bin folder for changes. When something is
changed, the application recycles. That's what is "invalidating your cache".
You can consider creating your "tempfolders" outside of the application root,
or consider using a different approach to whatever it is you need to do.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Khafancoder" wrote:
Hi guys,
i keep many items in cache such as onlineusers and ...
recently i build a page which create tempfolders in webapplication
root dir
but i findout that it invalidate cache and i hadn't use of any
CacheDependency at all ...
what's the problem ?
thanks in advance- Hide quoted text -

- Show quoted text -

Jul 3 '07 #3

create a data folder for the site. you can create a temp under the data
(or just use the data folder). files in this folder are not monitored.

-- bruce (sqlwork.com)

Khafancoder wrote:
Hi guys,

i keep many items in cache such as onlineusers and ...
recently i build a page which create tempfolders in webapplication
root dir
but i findout that it invalidate cache and i hadn't use of any
CacheDependency at all ...

what's the problem ?

thanks in advance
Jul 3 '07 #4
Thank you bruce, i will try it.

On Jul 4, 1:32 am, bruce barker <nos...@nospam.comwrote:
create a data folder for the site. you can create a temp under the data
(or just use the data folder). files in this folder are not monitored.

-- bruce (sqlwork.com)

Khafancoder wrote:
Hi guys,
i keep many items in cache such as onlineusers and ...
recently i build a page which create tempfolders in webapplication
root dir
but i findout that it invalidate cache and i hadn't use of any
CacheDependency at all ...
what's the problem ?
thanks in advance- Hide quoted text -

- Show quoted text -

Jul 3 '07 #5

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

Similar topics

6
by: Eran Kampf | last post by:
I am trying to dynamically create directories in my ASP.NET application (I am using Server.MapPath("/")+"test" as the folder) and I am getting a DirectoryNotFoundException saying "Could not find a...
13
by: Duron | last post by:
I created a new folder using VS.NET 2003. Then I created a new web form under that folder, say, \Member\Default.aspx. However, even if I didn't do anything to that page, a run-time error appears...
2
by: EO | last post by:
I'm using an ISP with poor tech support. I apologize if this is more of an ISP question, but it is an asp.net question as well. I have a root domain pointing to a root level folder. There are...
7
by: Jaydeep | last post by:
Hi, Anybody knows how to create virtual directory programmatically under root directory ofcourse from code-behind. I am developing web-based application where I need to create a folder and making...
3
by: Fabio R. | last post by:
I'm developing a web application that needs to support a webfarm scenario so I've used a filecachedependency on a shared folder (for now, always in my local machine) to clear cache on all...
6
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
5
by: Nathan Sokalski | last post by:
I am creating an ASP.NET application in a subdirectory of what IIS uses as the root directory (C:\Inetpub\wwwroot\). I am using the version of IIS that comes with Windows XP Pro SP2. Some of my...
3
by: wardemon | last post by:
Hi All, I have a aspx page named: ImageProcess.aspx that creates a thumbnail version of an image by passing the ImagePath, width, and height. The ImagePath is taken from a table from a database,...
3
by: Dave | last post by:
Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a file into a Cache entry that I insert and then delete a subdirectory in the same directory that the file is located in then my...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.