Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "Temporary ASP.NET Files" folder for?

People also ask

Is it OK to delete temporary ASP.NET files?

The temporary files generated by Visual Studio after creating and running an ASP.NET application reside in: %SYSTEMROOT%\Microsoft.NET\Framework[64]\<vernum>\Temporary ASP.NET Files folder. The folders and files under this folder can be removed with no harm to your development computer.

What is ASP.NET files?

An ASP.NET Web forms file (page) that can contain Web controls and presentation and business logic. For more information, see Creating ASP.NET Web Pages and ASP.NET Web Server Controls Overview. .axd. Application root. A handler file used to manage Web site administration requests, typically Trace.

What are temporary downloaded files stored?

Windows Temporary files are created by the operating system during the normal course of its running when there may not be enough memory allocated for the task. Software that uses large amounts of data like Graphics, Video, or Media editing software also creates temporary files.


These are what's known as Shadow Copy Folders.

Simplistically....and I really mean it:

When ASP.NET runs your app for the first time, it copies any assemblies found in the /bin folder, copies any source code files (found for example in the App_Code folder) and parses your aspx, ascx files to c# source files. ASP.NET then builds/compiles all this code into a runnable application.

One advantage of doing this is that it prevents the possibility of .NET assembly DLL's #(in the /bin folder) becoming locked by the ASP.NET worker process and thus not updatable.

ASP.NET watches for file changes in your website and will if necessary begin the whole process all over again.

Theoretically the folder shouldn't need any maintenance, but from time to time, and only very rarely you may need to delete contents. That said, I work for a hosting company, we run up to 1200 sites per shared server and I haven't had to touch this folder on any of the 250 or so machines for years.

This is outlined in the MSDN article Understanding ASP.NET Dynamic Compilation


The CLR uses it when it is compiling at runtime. Here is a link to MSDN that explains further.


Thats where asp.net puts dynamically compiled assemblies.