ASP.NET错误:类型在两个目录存在 [英] ASP.NET error: The type exists in both directories

查看:117
本文介绍了ASP.NET错误:类型在两个目录存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个MVC2项目中,我搬离APP_ code一个文件夹的内容并编译它。然后重新移回APP_ code,然后改变了它的生成操作编译。现在,我得到这个错误,我不知道如何解决这个问题,再次让我的工作方案:

In a MVC2 project I moved a file from App_code to Content folder and compiled it. Then move it back again to App_Code and then changed its Build Action to "Compile". Now I get this error and I don't know how to fix this to make my program work again:

CS0433:类型'助手'存在于
  都
  C:\\用户\\应用程序数据\\本地\\ TEMP \\临时
  ASP.NET
  文件\\ ROOT \\ b00d4b7d \\ b2553f9c \\ APP_ code.zowyklar.dll
  和
  C:\\用户\\应用程序数据\\本地\\ TEMP \\临时
  ASP.NET
  文件\\ ROOT \\ b00d4b7d \\ b2553f9c \\装配\\ DL3 \\ 5c6d3537 \\ 19f85663_cde9cb01 \\ MyProject.DLL

CS0433: The type 'Helper' exists in both 'c:\Users...\AppData\Local\Temp\Temporary ASP.NET Files\root\b00d4b7d\b2553f9c\App_Code.zowyklar.dll' and 'c:\Users...\AppData\Local\Temp\Temporary ASP.NET Files\root\b00d4b7d\b2553f9c\assembly\dl3\5c6d3537\19f85663_cde9cb01\MyProject.DLL'

清洗和重建不能解决问题。

Cleaning and Rebuilding doesn't solve the problem.

推荐答案

尝试清洁您的解决方案,然后尝试重建。 Visual Studio中可能仍然有参考旧的DLL它创造新的DLL后。

Try cleaning your solution and then try to rebuild. Visual Studio probably still has reference to the old dll after it created the new dll.

这篇关于ASP.NET错误:类型在两个目录存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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