Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I safely delete the Temporary ASP.Net folder's contents?

My application works fine whenever I run under VS 2010. When I upload it on a server and I run from IIS it gives Complie error : CS0433: 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\~\App_Web_dzybh5am.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\~\App_Web_znctdhjf.DLL'

Error:

Line 146:    
Line 147:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 148:    public class default_aspx : global::_Default, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 149:        
Line 150:        private static bool @__initialized;

A quick search on google revealed that deleting those temporary files solved the problem.

Is it useful to delete those temporary files, will it affect my application in future ?

I just want to know should I delete all files from temporary folder.

like image 363
Satinder singh Avatar asked May 16 '12 11:05

Satinder singh


1 Answers

As long as your web app is shut down, it shouldn't have any effect on the application.
.Net / IIS uses that temp folder as a place to hold the compiled versions of your aspx/razor pages.

Keep in mind though that other IIS web apps may be using that temp folder, so be careful about when you do it.

like image 132
Alex Moore Avatar answered Nov 19 '22 11:11

Alex Moore