Site Search:
Sign in | Join | Help
4Penny.net

Crystal Reports

Notes, Tips and Tricks on Developing using Crystal Reports

'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'

Also:

Error 13 'ReportDocument' is ambiguous in the namespace 'CrystalDecisions.CrystalReports.Engine'. C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb 11 18 C:\...\Culinart\

Error 15 'DiskFileDestinationOptions' is ambiguous in the namespace 'CrystalDecisions.Shared'. C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb 47 26 C:\...\Culinart\

Error 16 'ExportDestinationType' is ambiguous in the namespace 'CrystalDecisions.Shared'. C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb 50 57 C:\...\Culinart\

Error 17 'ExportFormatType' is ambiguous in the namespace 'CrystalDecisions.Shared'. C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb 51 52 C:\...\Culinart\

I solved this by going to Project Propertities > References, somehow I had references to two different versions of crystal in my project. While doing this I noticed that the references kept coming back. I searched the project and found that I had double lines iin the web config to different versions of Crystal.

 

Comments

 

Dean Hughes said:

Thank you - I had exactly the same problem and I really didn't have time to figure it out and thanks to you I was able to solve it 5 minutes after getting the original error message. It's nice not to have to spend hours on it in a vain attempt to correct an issue only to find you were looking in the wrong place and this could have been one of those. I really appreciate it.

September 1, 2008 4:18 PM
 

Paul D said:

Hi

I'm having exactly the same problem however whenever I add a new report the references to the wrong DLL's reappear.

Any thoughts on how to prevent this?

October 1, 2008 11:20 AM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.