cancel
Showing results for 
Search instead for 
Did you mean: 

Problems upgrading from VS2008 to VS2010.

Former Member
0 Kudos

Hi there,

I've recently installed VS2010 and the Crystal Reports installer to go with it. I've also converted my existing VS2008 solution to work in VS2010. I got no errors during the conversion and my code compiles fine, but when I try and run a page containing a report viewer, I get the following error:

System.Web.HttpParseException was unhandled by user code

Message=c:\Users\Steve Barker\AppData\Local\Temp\Temporary ASP.NET Files\root\93d099e1\231e6d84\App_Web_reportviewer.ascx.cc671b29.leojnwnb.0.cs(169): error CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll'

Does anyone know how to solve this? I've not been able to find anything useful on Google so far... It looks like quite a straightforward error, but I can't track down the ambiguity.

Any assistance gratefully received.

Thanks in advance,

Steve.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Steve,

First make sure you are using the 4.0 Framework and not the client version.

Then check your web.config file and make sure no references are pointing to the older versions.

Also check the CPU version and set it to 32 bit x86 mode only, if that's what you are using.

Thank you

Don

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

I believe from your description that you have VS 2008 and VS2010 on the same dev box. If that is the case, I've reproduced the issue and it has been escalated for a fix. E.g.; there is a side by side compatibility issue...

I've created KBase on the issue - just waiting for it to be replicated externally now. In the meantime, below is the contents of the KB:

 


*Symptom* 

Compiling a VS2010 Windows application using CRVS2010 
On compile the following error is produced; 
<img src="https://weblogs.sdn.sap.com/weblogs/images/251941734/masterpageviewer2.jpg" width="548" height="440" border="0" alt="image" /> 

*Environment* 

VS2008 
VS2010 
CRVS2010 

*Reproducing the Issue* 

Install VS2008 
Install VS2010 
Install CRVS2010 
Create a Windows application in VS2010, using CRVS2010 
In the Properties for the project and change the target framework .NET Framework 4. (not the .NET Framework client profile) 
From the VS .NET 2010 Toolbox, then drag and drop the CrystalReportViewer on the Winform 
All the CrystalDecisions.* references in the Solution Explorer will be version 10.5.3700.0 instead of 13.0.2000.0 


*Cause* 

This is a side by side issue because Visual Studio 2008 is also installed on the computer 


*Resolution* 

Technical Escalation number 5000296571 has been created for this issue 
Work-around; Manually remove CR references of version 10.5.3700.0 from the project 
The following references must be removed: 
CrystalDecisions.Windows 
CrystalDecisions.Shared 
CrystalDecisions.ReportSource 
CrystalDecisions.CrystalReports.Engine 

Delete the CR viewer off the form 
Manually re-add the following assemblies of version 13.0.2000.0: 
CrystalDecisions.Windows 
CrystalDecisions.Shared 
CrystalDecisions.ReportSource 
CrystalDecisions.CrystalReports.Engine 

Re-add the CR viewer defined by the CrystalDecisions.Windows assembly of version 13.0.2000.0 


Ludek

Former Member
0 Kudos

Thanks for your help Don!

...and for raising the issue Ludek.

I've managed to get something working in VS2010, although it's not compatible with my webserver so I'm going to stick with VS2008 for now.

0 Kudos

I should note also that you do not have to use the 4.0 framework. You can use everything back to 2.0 if need be...

The great thing about CR2010 is it gives you full features, only thing missing is the crw32.exe. You also now have access to InProc RAS ( Report Application Server ) which now gives you multiple Controllers which allows Report Creation functionality and other control over your reports.

Thank you

Don

PS - the PrintOutputController allows you complete access to the printers, so if you want to create your own print button you can preset all of the required printer options first.

Former Member
0 Kudos

Where do I suppose to delete the CR version 10.5.3700.0 ? Can't figure it out. Really need help.

former_member183750
Active Contributor
0 Kudos

From your project references.

If this does not help, create a new thread and provide info as per the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

Step 2 Asking Your Question; Provide Enough Information

Also, you may want to see [this|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12045] [original link is broken] [original link is broken] [original link is broken]; blog.

- Ludek