473,405 Members | 2,154 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,405 software developers and data experts.

ASP worker process not releasing files

Greetings!
My application uses several files that contain constants, error code,
etc that are located in a directory call /bin. At times when I am
testing the application in "debug" mode, the files cannot be opened and
I receive an error. I have also seen occurances where for some reason
VS.NET suffered a fatal error and shut down. When teying to open the
files in /bin again after a reboot, I am unable to.

I have come up with 3 work-arounds so far:
1) move the files in the bin folder somewhere else, then move them back.
This sometimes works.
2) mark the folder and all contents as "read-only" then uncheck
read-only and apply to all. This works most of the time.
3) recycle the asp-wp (ASP Worker Process) thread. This normally works.
If this doesn't, then I try step 2 instead.

First off, has anybody else seen this behavior before?
What can I do to prevent this kind of behavior? From what I understand
VS.NET is "locking" the files in the bin folder for it's own use by
setting them read-only and reading from them as needed. The problem is
with setting these files back to writeable when the process is done.

Thank you.
--
Regards,

Top Hat
Please no email replies - reply in newsgroup <<<

MCP, MCSE, CSA
Jul 21 '05 #1
1 1607
I should add that all the files in the bin folder are precompiled .dll
files that are used with specific controls on the forms.

This setup has worked before for me very well, but recently I have begun
to see this issue.

Top Hat wrote:
Greetings!
My application uses several files that contain constants, error code,
etc that are located in a directory call /bin. At times when I am
testing the application in "debug" mode, the files cannot be opened and
I receive an error. I have also seen occurances where for some reason
VS.NET suffered a fatal error and shut down. When teying to open the
files in /bin again after a reboot, I am unable to.

I have come up with 3 work-arounds so far:
1) move the files in the bin folder somewhere else, then move them back.
This sometimes works.
2) mark the folder and all contents as "read-only" then uncheck
read-only and apply to all. This works most of the time.
3) recycle the asp-wp (ASP Worker Process) thread. This normally works.
If this doesn't, then I try step 2 instead.

First off, has anybody else seen this behavior before?
What can I do to prevent this kind of behavior? From what I understand
VS.NET is "locking" the files in the bin folder for it's own use by
setting them read-only and reading from them as needed. The problem is
with setting these files back to writeable when the process is done.

Thank you.


--
Regards,

Top Hat
Please no email replies - reply in newsgroup <<<

MCP, MCSE, CSA
Jul 21 '05 #2

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

Similar topics

3
by: Trevor Andrew | last post by:
Hi There, I have a small ASP.NET application under development. I am using VS.NET 2002 (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on a web hosting service in the US. I am...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
11
by: Richard Myers | last post by:
Hello Im sure many of you have seen this error message before: For us its the third time this year. This error occurs seemingly at random. I have no idea what causes it too happen. None....
1
by: alex | last post by:
I can map all files (.*) to asp.net worker process. But that is a perfomance hit and default documents are no longer working. How do I map "NO FILE" to asp.net worker? Like if I have an url : ...
3
by: Marcel van den Hof | last post by:
Dear all, Is there any way to prevent the ASP.NET worker process from recycling the worker process when a thread is being executed on the foreground (IsBackground=false). I'd also like to...
1
by: Top Hat | last post by:
Greetings! My application uses several files that contain constants, error code, etc that are located in a directory call /bin. At times when I am testing the application in "debug" mode, the...
5
by: J-T | last post by:
I guess I'm a litte bit confused about app pool and worker process. In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process...
0
by: Gregory Gadow | last post by:
Still working on this project. What I have working: I have a service that uses FileSystemWatcher on an "in box" folder. When a text file appears in the in-box, it copies the file to a work...
1
by: nicerun | last post by:
I'm using the Application_Start event at Global.asax.cs to invoke thread that do some job. I know that Application_Start event occurs when the very first request to Web Application received. -...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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...
0
agi2029
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,...
0
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...

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.