如何解决错误189的类型'XXX'两个??。dll的存在,并且?? DLL

编程入门 行业动态 更新时间:2024-10-28 10:28:54
本文介绍了如何解决错误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

本文发布于:2023-11-04 10:03:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何解决   错误   两个   类型   dll

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!