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

Can I safely delete Temporary ASP.NET Files?

On my development machine, I often delete all folders/files under
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files. That
has not caused me any trouble til now.

So now we have a production server and the system disk is running out of
space soon. I need to some files to make space. And I found the Temporary
ASP.NET Files folder contains hundres of megabytes of files. I want to delete
them all, but I am afraid of any unwanted results to happen to the production
server.

Please tell me if it is totally safe to delete all those files?
Nov 18 '05 #1
6 20044
Yes it is safe. However, these are the fully compiled files that your
production server uses to process the application. Each new page request
will cause these files to be re-created and each first user to the page,
will experience a short delay in receiving the page as the new temporary
file is re-created.

If you are in that much of a bind for disk space on a production server,
it's time to think about upgrading your server.

"Neo The One" <Ne*******@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
On my development machine, I often delete all folders/files under
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files. That
has not caused me any trouble til now.

So now we have a production server and the system disk is running out of
space soon. I need to some files to make space. And I found the Temporary
ASP.NET Files folder contains hundres of megabytes of files. I want to
delete
them all, but I am afraid of any unwanted results to happen to the
production
server.

Please tell me if it is totally safe to delete all those files?

Nov 18 '05 #2
Thanks for your reply.

And another related question is is there any way to configure where these
temporary files go? For example, I want the Framework put these files on
another disk.

Oh, BTW, the reason the system disk is running out space is that I was
verystupid and only partioned 4gb space for C:.

"Scott M." wrote:
Yes it is safe. However, these are the fully compiled files that your
production server uses to process the application. Each new page request
will cause these files to be re-created and each first user to the page,
will experience a short delay in receiving the page as the new temporary
file is re-created.

If you are in that much of a bind for disk space on a production server,
it's time to think about upgrading your server.

"Neo The One" <Ne*******@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
On my development machine, I often delete all folders/files under
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files. That
has not caused me any trouble til now.

So now we have a production server and the system disk is running out of
space soon. I need to some files to make space. And I found the Temporary
ASP.NET Files folder contains hundres of megabytes of files. I want to
delete
them all, but I am afraid of any unwanted results to happen to the
production
server.

Please tell me if it is totally safe to delete all those files?


Nov 18 '05 #3
Sure, you can delete them, but the real question is "should you"?
They will get recreated when the pages are hit, as they are cached native
compiles, amongst other things. So the answer to "should" is no.

I would look for other files to delete or add a new drive and migrate the
site over to that drive (copy and then point the application to the new
virtual directory). This will, at least, move your IIS information over. If
you have SQL on the box, consider moving data files and log files to another
drive or moving SQL to another machine prior to deleting temp files.

How big is the drive on this machine and what do you have installed? I am
sure you can find something less critical to delete.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Neo The One" wrote:
On my development machine, I often delete all folders/files under
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files. That
has not caused me any trouble til now.

So now we have a production server and the system disk is running out of
space soon. I need to some files to make space. And I found the Temporary
ASP.NET Files folder contains hundres of megabytes of files. I want to delete
them all, but I am afraid of any unwanted results to happen to the production
server.

Please tell me if it is totally safe to delete all those files?

Nov 18 '05 #4
> Oh, BTW, the reason the system disk is running out space is that I was
verystupid and only partioned 4gb space for C:.


Time to reformat the HD. ;o)

-Darrel
Nov 18 '05 #5
> I would look for other files to delete...
http://www.werkema.com/software/spacemonger.html

Greg

"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:EA**********************************@microsof t.com...
Sure, you can delete them, but the real question is "should you"?
They will get recreated when the pages are hit, as they are cached native
compiles, amongst other things. So the answer to "should" is no.

I would look for other files to delete or add a new drive and migrate the
site over to that drive (copy and then point the application to the new
virtual directory). This will, at least, move your IIS information over.
If
you have SQL on the box, consider moving data files and log files to
another
drive or moving SQL to another machine prior to deleting temp files.

How big is the drive on this machine and what do you have installed? I am
sure you can find something less critical to delete.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Neo The One" wrote:
On my development machine, I often delete all folders/files under
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files.
That
has not caused me any trouble til now.

So now we have a production server and the system disk is running out of
space soon. I need to some files to make space. And I found the Temporary
ASP.NET Files folder contains hundres of megabytes of files. I want to
delete
them all, but I am afraid of any unwanted results to happen to the
production
server.

Please tell me if it is totally safe to delete all those files?

Nov 18 '05 #6
"Neo The One" <Ne*******@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
Please tell me if it is totally safe to delete all those files?


Yes, but they'll recreate themselves the instant someone access your site...
:-)
Nov 18 '05 #7

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

Similar topics

0
by: VZUmar | last post by:
Hi I am using IWebBrowser2 in my VC++ windows Application, My application uses browser control to navigate through different web pages. IE of machine has Security setting "Empty Temporary Internet...
2
by: yxq | last post by:
Hi, I want to delete the files in "Temporary internet cache" and "History" folder, is it ok to use "File.delete"? What are the true path of "Temporary internet cache" and "History" folder? ...
1
by: Manish | last post by:
Hi all, Can any one plz suggest me how i can delete my temporary internet files within my Asp.net page. I am using C# as the code behind lang. Indeed, i have flash inserted on my .net page,...
15
by: ais523 | last post by:
I was just wondering whether there was a portable way to use gets() safely, and came up with this: #include <stdio.h> #include <stdlib.h> int main() { FILE* temp; char buf;
3
by: Tony Girgenti | last post by:
Hello. Can i safely delete the files and folders in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files? Any help would be gratefully appreciated. Thanks, Tony
4
by: Andrea Scharfe | last post by:
Hi there, I am writing a PHP script which generates some charts using gnuplot. This generates quite a large number of temporary image files. My problem is that I do not know how to delete these...
0
by: wolfsbane | last post by:
Alright, here it is I am trying to write a win32 app in VB 2005 to clean up user's profiles. everything works correctly except for the Delete("directory", True) statement. I get a...
17
by: byte8bits | last post by:
How does C++ safely open and read very large files? For example, say I have 1GB of physical memory and I open a 4GB file and attempt to read it like so: #include <iostream> #include <fstream>...
3
by: Richard | last post by:
Hi, We have a few development dbs version 8, but really doesnt matter, that are non-recoverable ( LOGRETAIN OFF). How do I trim the log space ? db2 get db cfg for MYDB | grep 'First active log...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: 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...
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.