如何解决错误189的类型'XXX'两个??。dll的存在,并且?? DLL [英] How to solve Error 189 The type 'XXX' exists in both ??.dll and ??.dll

查看:155
本文介绍了如何解决错误189的类型'XXX'两个??。dll的存在,并且?? DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这个令人毛骨悚然的编译错误信息争抢周不已,有时只是离开我后运行重新编译了十几次。

I am fighting for weeks already with this creepy compilation error messages, that sometimes just go away after I run re-compile a dozen times.

我有一个ASP.NET 2.0网站(不WebApplication的)。
当我编译我得到这一切的时候(对于不同类型,未predictably)。

I have an ASP.NET 2.0 Website (not WebApplication). When I compile I get this all the time (for different types, unpredictably).

我不知道 - 这是什么它与框架\\ v4.0.30319办??
这是一个.NET 2.0的项目。

I wonder - what does it has to do with Framework\v4.0.30319 ?? It's a .NET 2.0 project.

错误189型'XXX'两个'C存在'和'C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\ MyWebSite \\ 7f070f1a \\ b1e2bb52 \\ App_Web_mey4xl1t.dll

Error 189 The type 'XXX' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\MyWebSite\7f070f1a\b1e2bb52\App_Web_search.ascx.cc671b29.j7lvxos_.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\MyWebSite\7f070f1a\b1e2bb52\App_Web_mey4xl1t.dll'

我试图删除这些临时ASP.NET文件 - 没有帮助

I tried deleting these Temporary ASP.NET Files - doesn't help.

尝试添加 =批假来编译的web.config元素,永远需要打造,但问题仍然存在。

Tried to add batch="false" to compile element in web.config, takes forever to build, but the problem remains.

推荐答案

您有一个类或其他对象的重复声明。

You have duplicate declaration of a class or other object.

看看提到的类的名称,搜索的DLL都为它的声明。其中之一显然是错误的。

Look at the name of the class mentioned, and search both dlls for it's declaration. One of them is obviously wrong.

这篇关于如何解决错误189的类型'XXX'两个??。dll的存在,并且?? DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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