CS0433:这两种类型中都存在类型'CrystalDecisions.Web.CrystalReportViewer' [英] CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both

查看:84
本文介绍了CS0433:这两种类型中都存在类型'CrystalDecisions.Web.CrystalReportViewer'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Crystal Report时出现以下错误

CS0433:类型"CrystalDecisions.Web.CrystalReportViewer"存在于两个都'c:\ windows \ assembly \ GAC_MSIL \ CrystalDecisions.Web \ 10.5.3700.0__692fbea5521e1304 \ CrystalDecisions.Web.dll'和'c:\ windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET文件\ root \ f8ac550c \ d919c1f5 \ assembly \ dl3 \ 21892670 \ 002d6cd3_f2bfc501 \ CrystalDecisions.Web.DLL

从Framework 2.0转换为3.5后,出现上述错误.如果我正在创建新的Web应用程序,则不会出现任何错误.我只对转换后的应用程序报错.

解决方案

我发现了Atlast.问题是,在bin文件夹中,有10.2.51014.0版的CrystalDecisions.Web.dll,而我正在添加参考,我正在添加10.5.3700.0.所以我已经从bin文件夹中删除了dll.现在工作正常了.

谢谢

I am getting the following error while running crystal report

CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f8ac550c\d919c1f5\assembly\dl3\21892670\002d6cd3_f2bfc501\CrystalDecisions.Web.DLL

I am getting the above error after converting from framework 2.0 to 3.5. If I am creating new web application, I am not getting any error. I am getting error only for the converted application.

解决方案

Atlast I found.. The Problem is, In bin folder there is CrystalDecisions.Web.dll of version 10.2.51014.0 while i am adding reference i am adding 10.5.3700.0. So i have deleted dll from bin folder..Now Its working fine..

Thanks

这篇关于CS0433:这两种类型中都存在类型'CrystalDecisions.Web.CrystalReportViewer'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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