我可以安全地删除临时ASP.Net文件夹的内容是什么? [英] Can I safely delete the Temporary ASP.Net folder's contents?

查看:242
本文介绍了我可以安全地删除临时ASP.Net文件夹的内容是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序工作正常时,我在运行VS 2010 。当我把它上传在服务器上,我从 IIS 它给 Complie错误运行:CS0433:  C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \临时ASP.NET文件\ ROOT \〜\ App_Web_dzybh5am.DLL'和'C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \临时ASP。 NET文件\ ROOT \〜\ App_Web_znctdhjf.DLL

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'

错误:

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.

推荐答案

只要你的Web应用程序被关闭,它不应该对应用程序的任何影响。
.NET / IIS使用临时文件夹作为一个地方来保存你的ASPX /剃须刀页的编译版本。

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.

请尽管其他的IIS Web应用程序可以使用临时文件夹,所以要小心,当你做到这一点。

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

这篇关于我可以安全地删除临时ASP.Net文件夹的内容是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆