Why crystal report does not open from Visual Studio 2008?

I have created a crystal report using CR v11. Its a simple data driven report and uses ODBC connection.
I added that report to Visual Studio.Net 2008. Now when I try to run that application the report doesn't open up.
It gives an error that reads

"Error in File C:\DOCUME~1\johns\LOCALS~1\Temp\letter {EDF0F294-6027-4819-BD93-3687EC7E2699}.rpt:
Unable to connect: incorrect log on parameters."

Please advise what do you think is the issue? and how can it be fixed?

BTW, If I run the report directly from Crystal report v11, it works.
Ricky66Asked:
Who is Participating?
 
mlmccCommented:
Are you passing th elogon information from the application?

Do you get a chance to logon?

mlmcc
0
 
mlmccCommented:
Is this on a machine with Crystal installed/

if not, what Crystal runtimes/msi did you use when you installed the application/

mlmcc
0
 
Ricky66Author Commented:
Yes, its on my development machine. It has VS 2005, VS 2008, Sql Server 2000, CR 11 installed. I have created a VS 2008 winforms application.

The strange thing is another developer sent me a second crystal report letter and this second letter works fine with the application. But the first letter doesn't work.

I am doubting if it could be caused because the .Net project and the Crystal reports are placed on a network drive.

Thanks,
Ricky
0
 
CodeCruiserCommented:
>Unable to connect: incorrect log on parameters."

Is the log on info different than the one used at design time? Is the database accessible from your computer?
0
 
Ricky66Author Commented:
Thanks! That was awesome. I took that part out of the application and it works.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.