CS0433: The type #39;CrystalDecisions.Web.CrystalReportViewer#39; exists in both(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文件 ootf8ac550cd919c1f5assemblydl321892670 02d6cd3_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 ootf8ac550cd919c1f5assemblydl321892670 02d6cd3_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"类型存在于两者中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:CS0433:“CrystalDecisions.Web.CrystalReportViewer"类型存在于两者中
基础教程推荐
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
