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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With