如何清除要编译的ASP.NET应用程序? [英] How Do You Clear an ASP.NET app for compiling?

查看:62
本文介绍了如何清除要编译的ASP.NET应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在构建和重建ASP.NET程序.

I have been building and rebuilding an ASP.NET program.

我认为我犯了一个可怕的错误,那就是最近将发布的内容复制回我正在开发的文件夹中.

I made the horrible mistake, I think, of recently copying the published content back to the folder I was developing.

因此,现在在构建代码时出现一个异常错误.它说在一个临时目录中的一个文件中有一个重复的定义,而在一个临时目录中的另一个文件中有一个重复的定义.

So now I have an unusual error when I build the code. It says That there is a duplicate definition in one file in a temporary directory with anohter file in a temporary directory.

错误3

两种类型中均存在类型'ChildEventHandler''c:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \临时ASP.NET文件... \ b90cc7a4 \ 28d266b \ assembly \ dl3 \ c4cf1ea3 \ b6e4b808_ef7cce01 \ App_Code.DLL'和'c:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET文件... \ b90cc7a4 \ 28d266b \ App_Code.asx5jp5d.dll'C:\ inetpub \ wwwroot ... \ Resources \ usercontrols .... ascx.cs 11 18 C:...... \

The type 'ChildEventHandler' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files...\b90cc7a4\28d266b\assembly\dl3\c4cf1ea3\b6e4b808_ef7cce01\App_Code.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files...\b90cc7a4\28d266b\App_Code.asx5jp5d.dll' C:\inetpub\wwwroot...\Resources\usercontrols....ascx.cs 11 18 C:......\

我当然删除了项目和文件名,但这基本上就是错误所表明的.

I removed project and file names, of course, but this is basically what the error says.

由于临时文件有错误,该怎么办?

Since the error is with temporary files, what should I do?

我在Visual Studio中看不到用于清除编译文件的清除"选项.

I do not see a "clear" option in visual studio to clear out the files of a compile.

推荐答案

我在编译时有时会遇到这个问题.转到此文件夹 c:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ ASP.NET临时文件,然后删除其下的所有文件和文件夹.当您构建不由IIS托管的应用程序时,会在此文件夹下创建临时调试文件和文件夹.

This problem I faced sometimes back while compiling. Go to this folder c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files and delete all the files and folder under it. When you build an application which is not hosted under IIS, temporary debug files and folder get created under this folder.

在删除它们时可能会出现访问被拒绝的错误.关闭您的Visual Studio解决方案,并删除此文件夹下的所有内容.它将解决编译错误.

It may happen that you get an access denied error while deleting them. Close your Visual Studio solution and delete everything under this folder. It will resolve the compilation error.

这篇关于如何清除要编译的ASP.NET应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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