问题描述
运行水晶报表时出现以下错误
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"类型存在于两者中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!