We help IT Professionals succeed at work.
Get Started

Cant Use VS 2005 Crystal Reports in VS 2008?

VITIX asked
Last Modified: 2012-05-06
I am converting a VB.Net application written in VS 2005 to run in C# using VS 2008. I have both VS 2005 and VS 2008 installed on my XP Pro machine. I have my VS 2008 options set to target the .Net 3.5 framework. I have already installed both the VS service pack 1 and the service pack for Crystal Reports Basic 2008.

The existing application includes about 50 reports that were created in VS 2005. When I run the old app in VS 2005 debug, everything works fine. The reports are using xsd data sources and runtime parameters to pull data from SQL server. They do exactly what they are supposed to do when I run the app in VS 2005 VB.

When I run in C# VS 2008 all I get is a C++ memory exception. If I try to view or watch the exception objects, all I get is a long list of "cannot interpret because a native frame is on top of the stack" or something like that. This exception comes up before the report ever tries to query any data. If I try to set a variable to the report tables, I get an error because there are no tables, no database, nothing. I only get that message about the native frame on top of the stack.

The VS 2008 code is running against a new server, but even if I use the old connection strings and the old server and the old database, the reports still will not run in VS 2008. The VS 2005 code and reports all runs against the old server and old database.

Some of the reports will display data correctly in design mode preview, while others display some default stuff like colors names and data types. Why do they display correct data in design mode, but then wont work in runtime? Is this a compatibility issue? A framework version issue? Am I going to have to recreate these reports from scratch using the VS 2008 designer? Or is there a way to "import" them and "upgrade" them using the existing reports created in VS 2005?
Watch Question
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
This problem has been solved!
Unlock 2 Answers and 16 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE