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

查看:159
本文介绍了如何清除和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.

所以现在我有一个不寻常的错误,当我建立code。它说,有一个文件中的重复定义与在临时目录anohter文件的临时目录。

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 \\框架\\ v4.0.30319 \\临时ASP.NET
  文件... \\ b90cc7a4 \\ 28d266b \\装配\\ DL3 \\ c4cf1ea3 \\ b6e4b808_ef7cce01 \\ APP_ code.DLL
  和C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET
  文件... \\ b90cc7a4 \\ 28d266b \\ APP_ code.asx5jp5d.dll'C:\\的Inetpub \\ wwwroot的... \\资源\\用户控件.... 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 \\框架\\ v4.0.30319 \\临时ASP.NET文件,并删除其下的所有文件德和文件夹。当你建立这不是在IIS下临时调试文件主持和文件夹被创建该文件夹下的应用程序。

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

这可能发生,你虽然删除它们得到一个拒绝访问错误。请关闭您的Visual Studio解决方案,并在此文件夹下删除所有内容。这将解决编译错误。

It may happen that you get an access denied error while deleting them. Please close your visual studio solution and delete everything under this folder. it will resolve the compilation error.

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

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