Solved

Crystal reports dll clashing

Posted on 2011-03-06
8
809 Views
Last Modified: 2012-05-11
Greetings

I installed crystal reports 11.5 release 2, but now when I test the reports in Visual Studio I get error relating to dll's. I verified that references in bin and web.config are of the version that I am using.

CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\windows\assembly\GAC_MSIL\CrystalDecisions.Web\11.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll'

The error is highlighted on the aspx page at these line:    
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />

Please assist
Mandyprog
0
Comment
Question by:MandyProg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 35046916
Are you trying to use reports from 2 versions in the xame application?

mlmcc
0
 

Author Comment

by:MandyProg
ID: 35053769
No, I am only using version 11.5 hence I am suprised about the version 10 dll's error.
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 125 total points
ID: 35053791
In the application what references are there to Crystal dlls?

mlmcc
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:MandyProg
ID: 35093009
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
0
 

Author Comment

by:MandyProg
ID: 35390844
I had the following in my web.config:

<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>

Error was resoved after removing the version 10 Imagehandler. mlmcc's response was right. I want to award points to him.
0
 

Accepted Solution

by:
MandyProg earned 0 total points
ID: 35390896
mlmcc was right, I had the following in my web config. I am awarding the point so him.

<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
0
 

Author Closing Comment

by:MandyProg
ID: 35422313
Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question