Solved

Crystal reports dll clashing

Posted on 2011-03-06
8
802 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Call windows 10 virtual keyboard from windows forms app 2 53
get column names from table in vb.net 8 51
Code enhancement 4 22
division by zero in crystal reports 1 16
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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