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 4 1404
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 "invalidati ng your cache".
You can consider creating your "tempfolder s" 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
"Khafancode r" 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
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...@yaho o.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 "invalidati ng your cache".
You can consider creating your "tempfolder s" 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
"Khafancode r" 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 -
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
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 -
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 part
of the path "D:\".
My site is hosted on a public ISP that for obvious security reasons does not
allow my read access above my wwwroot folder...
|
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 when I try to run it --
Can not load class MySite._Default.
I am using VB to write codes. Does anyone have any idea why this problem
happens?...
|
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 several
folders in this root domain, each of which are aliased to other domain
names.
I used Visual Studio, through FP Extensions, logging in...
|
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 this folder as virtual directory in IIS.
I know in ASP how to do it.
Set objIIS = GetObject("IIS://localhost/W3SVC/1/Root")...
|
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 application processes / server when I
update some data...
On some articles (like
http://msdn.microsoft.com/msdnmag/issues/02/12/WebFarms/) someone suggests...
| |
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 restarts and all active sessions are
terminated.
This error is also described in detail here:...
|
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 code in my ASP.NET application
uses root-relative URLs, such as /images/background.gif. However, because
the subdirectory my application is in is not...
|
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, while width and
height is user specific - meaning user can change this on demand.
My question is, although this rendering images on the fly is...
|
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 dependency is triggered and my
cache object is deleted.
If I create a directory or delete another file in that same directory then
the Cache is...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |