CS0433:“CrystalDecisions.Web.CrystalReportViewer"类型存在于两者中

CS0433: The type #39;CrystalDecisions.Web.CrystalReportViewer#39; exists in both(CS0433:“CrystalDecisions.Web.CrystalReportViewer类型存在于两者中)
本文介绍了CS0433:“CrystalDecisions.Web.CrystalReportViewer"类型存在于两者中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行水晶报表时出现以下错误

I am getting the following error while running crystal report

CS0433:CrystalDecisions.Web.CrystalReportViewer"类型存在于两个都'c:windowsassemblyGAC_MSILCrystalDecisions.Web10.5.3700.0__692fbea5521e1304CrystalDecisions.Web.dll'和 'c:windowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET文件 ootf8ac550cd919c1f5assemblydl32189267002d6cd3_f2bfc501CrystalDecisions.Web.DLL

CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:windowsassemblyGAC_MSILCrystalDecisions.Web10.5.3700.0__692fbea5521e1304CrystalDecisions.Web.dll' and 'c:windowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files ootf8ac550cd919c1f5assemblydl32189267002d6cd3_f2bfc501CrystalDecisions.Web.DLL

从框架 2.0 转换到 3.5 后出现上述错误.如果我正在创建新的 Web 应用程序,我不会收到任何错误.我只收到转换后的应用程序的错误.

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.

推荐答案

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

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..

谢谢

这篇关于CS0433:“CrystalDecisions.Web.CrystalReportViewer"类型存在于两者中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)