Can I safely delete the contents of an ASP.Net temporary folder?

My application works fine when I run in VS 2010 . When I upload it to the server and I run from IIS , it gives the error Complie: 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 google search showed that deleting these temporary files solved the problem.

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

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

+5
source share
1

- , .
.Net/IIS aspx/razor.

, - IIS , , .

+2

All Articles