Clicky

Hi All,
I’m having a problem with a compiled application.
It’s a VB.NET VS2010 project.  I created a dataset in the project and populate it with data.
I am then running a crystal report (built in) off of that dataset; actually several reports.  
Everything works wonderfully within VS2010 either in Debug or Release.  I had a problem earlier and needed to edit the app.config file adding the following:
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0” />

This was the resolution to my probem that I found on the CrystalDecissions web site.
The error I was getting in dev and now compiled is the same indicating a Crystal file that can’t be found and differences with 64bit, 32bit and .NET 4.0

Can anyone please shed some light on this as to why it is not working as compiled and works fine in Dev?

Thanks,
John.

asked 12/09/2011 12:33

Thunder724's gravatar image

Thunder724 ♦♦


14 Answers:
WHat have you instlled on the client?

mlmcc
link

answered

mlmcc's gravatar image

mlmcc

the client is the same machine as the dev.
i just tried installing the 32 bit Crystal .net libs that didn't make any difference, same error.....
link

answered 2011-12-09 at 10:08:32

Thunder724's gravatar image

Thunder724

Are you using the version for VS2010?

mlmcc
link

answered 2011-12-09 at 11:11:27

mlmcc's gravatar image

mlmcc

yup
link

answered 2011-12-09 at 11:26:14

Thunder724's gravatar image

Thunder724

Did you get CR4VS2010 and the runtimes from here
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/22083

mlmcc
link

answered 2011-12-09 at 11:30:58

mlmcc's gravatar image

mlmcc

yes i did; and i installed the
Complete Package
and the 32 bit Rdist
link

answered 2011-12-09 at 12:13:40

Thunder724's gravatar image

Thunder724

I don't know.  It sounds like you have installed everything.

What is the exact error?

mlmcc
link

answered 2011-12-09 at 12:33:12

mlmcc's gravatar image

mlmcc

Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
link

answered 2011-12-09 at 14:04:15

Thunder724's gravatar image

Thunder724

It is looking for the 64-bit database driver.

mlmcc
link

answered 2011-12-12 at 04:38:16

mlmcc's gravatar image

mlmcc

why is it working in the VS and not in a compiled exe that are both on the same machine?
I was getting this error inicially when developing this and found, on the internet, a suggestion to edit the app.config file with the lines i mentioned at the top of this question.  This worked first try in dev; but for some reason this is what is being indicated through the debuger when running the exe.
link

answered 2011-12-12 at 06:37:58

Thunder724's gravatar image

Thunder724

i'v been recompiling the exe over and over again tracking where in the code the actual failure is occuring and i found it; but still don't know why.

it's failing when the report datasource is being set to the dataset...

DIM RPT As New rpt_JOBITMES_LISTING
RPT.SeDataSource(DSJ.Tables("tblJOBITEMS"))
link

answered 2011-12-12 at 06:42:10

Thunder724's gravatar image

Thunder724

Does the data set have to be moved/copied to the location of the compiled exe?
I would have thought it would be imbedded? I've tried moving/copying the dataset files to the exe directory, including subdirectories too; but nothing helps.
link

answered 2011-12-12 at 06:46:11

Thunder724's gravatar image

Thunder724

I got it working.... :)
I just included all the files from the /bin/release directory, instead of just the single exe.
One of those config files must be responsible for the data source and the dataset for the report connection.
link

answered 2011-12-12 at 06:55:19

Thunder724's gravatar image

Thunder724

I fixed it by including all the files from /bin/release into the exe direcctory.

link

answered 2011-12-12 at 07:08:03

Thunder724's gravatar image

Thunder724

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×23
×79
×1

Asked: 12/09/2011 12:33

Seen: 522 times

Last updated: 12/16/2011 05:18