473,513 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

file system problems

We are encountering a couple of problems with our ASP.NET / IIS 6.0
applications:

In each of 3 production environments we maintain a Windows Server 2003
machine running NTFS as a file server. The file server typically has 10s of
thousands of files on it. We've nver bothered to count, but I can imagine
that some environments excede 100,000 files.

Problem #1) We use the HttpContext Cache with a dependency on some given
file on the file server. Eventually the servers in our web farm will stop
recognizing that a dependency file has changed (we delete the file, and
eventually create a new file to the same path) and hold onto the given Cache
object, despite the dependecy file having changed. We have tried
stopping/starting IIS, but it seems the web server itself has to be rebooted,
and then caching works correctly until next time. We are aware of a possibly
related knowledge base article describing an error condition where cache
monitoring fails to start, but in this case we do not think we are throwing
any errors.

Problem #2) Eventually among the many thousands of files on our file server,
one will get into a state where the OS thinks it is locked by an application.
We cannot delete the file, and investigation reveals no application locking
the file. We have researched this problem and the only solution seems to be
to reboot the file server. This is a terrible solution, because our whole
production set-up depends on the file server running, and we need to reuse
the path the locked file is occupying.
Aug 1 '06 #1
2 1235
1. You said web farm.... Does all web servers have simialr folder/file
strcuture?
2. What did you use to investigate if file is locked by some application?
Does your web application opens these files?

What version of .Net?
"Jack Fox" <Jack Fo*@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
We are encountering a couple of problems with our ASP.NET / IIS 6.0
applications:

In each of 3 production environments we maintain a Windows Server 2003
machine running NTFS as a file server. The file server typically has 10s
of
thousands of files on it. We've nver bothered to count, but I can imagine
that some environments excede 100,000 files.

Problem #1) We use the HttpContext Cache with a dependency on some given
file on the file server. Eventually the servers in our web farm will stop
recognizing that a dependency file has changed (we delete the file, and
eventually create a new file to the same path) and hold onto the given
Cache
object, despite the dependecy file having changed. We have tried
stopping/starting IIS, but it seems the web server itself has to be
rebooted,
and then caching works correctly until next time. We are aware of a
possibly
related knowledge base article describing an error condition where cache
monitoring fails to start, but in this case we do not think we are
throwing
any errors.

Problem #2) Eventually among the many thousands of files on our file
server,
one will get into a state where the OS thinks it is locked by an
application.
We cannot delete the file, and investigation reveals no application
locking
the file. We have researched this problem and the only solution seems to
be
to reboot the file server. This is a terrible solution, because our whole
production set-up depends on the file server running, and we need to reuse
the path the locked file is occupying.

Aug 2 '06 #2
1) All servers on the farm use the same folder structure. In this case the
folder structure is determined by registry entries on each web server, not
virtual IIS folders. In any case if there were a discrpency in structure
between the web servers it would cause much bigger problems. Our problem is
very rare only only occurs once or twice among many thousands of files over
the course of months.

2) Under Computer Management/Shared Folders/Open Files the problem files are
not listed as open. (But we can watch other files open and close in their
normal operations.) Also one of our developers (who is now on vacation) using
some 3rd party tool also could not detect an owner of the lock on the problem
files.

"Winista" wrote:
1. You said web farm.... Does all web servers have simialr folder/file
strcuture?
2. What did you use to investigate if file is locked by some application?
Does your web application opens these files?

What version of .Net?
"Jack Fox" <Jack Fo*@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
We are encountering a couple of problems with our ASP.NET / IIS 6.0
applications:

In each of 3 production environments we maintain a Windows Server 2003
machine running NTFS as a file server. The file server typically has 10s
of
thousands of files on it. We've nver bothered to count, but I can imagine
that some environments excede 100,000 files.

Problem #1) We use the HttpContext Cache with a dependency on some given
file on the file server. Eventually the servers in our web farm will stop
recognizing that a dependency file has changed (we delete the file, and
eventually create a new file to the same path) and hold onto the given
Cache
object, despite the dependecy file having changed. We have tried
stopping/starting IIS, but it seems the web server itself has to be
rebooted,
and then caching works correctly until next time. We are aware of a
possibly
related knowledge base article describing an error condition where cache
monitoring fails to start, but in this case we do not think we are
throwing
any errors.

Problem #2) Eventually among the many thousands of files on our file
server,
one will get into a state where the OS thinks it is locked by an
application.
We cannot delete the file, and investigation reveals no application
locking
the file. We have researched this problem and the only solution seems to
be
to reboot the file server. This is a terrible solution, because our whole
production set-up depends on the file server running, and we need to reuse
the path the locked file is occupying.


Aug 2 '06 #3

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

Similar topics

5
2475
by: Gregg | last post by:
Hello all, I have been banging my head over a problem that I am having reading a comma seperated file (CSV) that can contain from 1 to 10,000 records. My code snipit is as follows: **Start...
2
12361
by: Bill N. | last post by:
Using VB .Net 2003 Standard Edition. This simple form has a "File in Use" problem while the executable is running. Created this simple program to make sure that I hadn't done something in my...
12
2945
by: Brian Henry | last post by:
first question... I have a flat file which unfortinuatly has columns seperated by nulls instead of spaces (a higher up company created it this way for us) is there anyway to do a readline with this...
8
9704
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
4
6246
by: Jonny | last post by:
Hello Group How do I open a Save File Dialog from an ASPX page behind a browse button? Any help would be fantastic!! I am using ASP.NET 1.1 using VB.NET as the coding language TIA
9
5233
by: John | last post by:
Tried this on microsoft.public.access.gettingstarted - no response - perhaps more appropriate here. I'm not a database user, simply helping someone get started with a new computer. The old...
6
2246
by: charles_gero | last post by:
Hi Everyone, I have a quick question regarding access to a file from disparate CHAR_BIT systems. Has anyone had experience writing a file on a system where CHAR_BIT is one value (let's use the...
10
1563
by: Redhairs | last post by:
In a web farm environment, how to store the user uploading files for future access? Store them in db, local file system or centralized file server? If trying to storing the file in local file...
34
5298
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
0
7267
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
7175
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
7391
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,...
0
7553
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
7542
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...
1
5100
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...
0
3247
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...
0
1609
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 ...
0
466
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...

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.