473,325 Members | 2,342 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,325 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 1602
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.