cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports XI not launching in Compiled Visual Studio 2010 VB .Net

Former Member
0 Kudos

Good Morning,

I was wondering if Someone can please help Me.

We have some very simple/basic Crystal Reports that We developed using Crystal Reports XI.

These reports are being launched using Microsoft Visual Studio 2003 VB .Net.

We are trying to upgrade from Microsoft Visual Studio 2003 to Microsoft Visual Studio 2010.

We performed the following:

Downloaded and installed the CRforVS_13_0_1.exe from the SAP website on Our Development machine.

The crystal reports work correctly on the development machine when execute in the Visual Studion 2010

VB .Net application.

However, when We try to deploy the application and the reports to a Non-Development Users machine

(does not have Crystal Reports or Visual Studio 2010 installed) the reports do not launch.

These are the steps that were performed on the Non-Development machine prior to attempting to run the application:

1. Installed .Net Framework 4.0 - successful no errors

2. Installed the CRRuntime_32bit_13_0.msi - received the following error when installing:

Event Type: Error

Event Source: MsiInstaller

Event Category: None

Event ID: 11904

Date: 4/16/2011

Time: 12:29:04 AM

User: AAIC\TESTAPP

Computer: TESTAPP

Description:

Product: SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit) -- Error 1904.

Module C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dtsagent.dll failed to register. HRESULT -1073741819. Contact your support personnel.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Data:

0000: 7b 38 44 36 31 38 31 46 {8D6181F

0008: 33 2d 43 41 43 42 2d 34 3-CACB-4

0010: 42 34 38 2d 38 42 30 38 B48-8B08

0018: 2d 39 38 31 46 33 41 37 -981F3A7

0020: 46 33 31 38 42 7d F318B}

3. Installed the Visual Studio 2010 VB .Net application on the Non-Development machine - successful no errors

4. When the application executes the code to load the XI Crystal Report We receive the following error:

"An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate (CRRedist.msi) containing the correct version of the Crystal Reports runtime (x86, x64 or Itanium) required. Please go to http://www.businessobjects.com/support for more information."

I cannot get the report to load or display through the viewer on the Non-Development user machine.

Can You please tell Me the steps I need to perform to get this to work.

Could the failure to register the dtsagent.dll be causing the report not to load?

Please let Me know if You need more information from Me.

Have A Great Day...

Thanks,

Mike Pappas

C:-)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Ludek,

That corrected the install issue!

However, the Visual Studio 2010 VB .Net application still does not load or display in the Crystal Reports Veiwer.

We are still receiving the following error:

"An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate (CRRedist.msi) containing the correct version of the Crystal Reports runtime (x86, x64 or Itanium) required. Please go to http://www.businessobjects.com/support for more information."

I have identified that the error occurs when the following statement is attempted to be executed:

m_objReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument

Can You please help Me with this?

Thanks,

Mike

C"-)

former_member183750
Active Contributor
0 Kudos

1) Make sure that app is not compiled as "Any CPU"

2) Compile either as 32 or 64 bit, then ensure the correct "bitness" runtime is deployed

3) Make sure the process has read / write permissions to the win\temp directory

4) If this is a web app, use the [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] utility and check for "Access Denied" errors on files, path and registry. Also, see [this|; forum thread for more info.

- Ludek

Former Member
0 Kudos

1. Made sure that the app is not compiled as "Any CPU"

2. Compiled as 32 bit.

What do You mean by correct "bitness"?

Meaning the 32 bit redist in CRRuntime_32bit_13_0_1.msi.

I had initially installed the CRRuntime_32bit_13_0_0.msi but

I found this one in one of Your posts. So I uninstalled the

CRRuntime_32bit_13_0_0.msi / rebooted / and installed the

CRRuntime_32bit_13_0_1.msi.

This is what was deployed on the Non-Development machine.

3. The process HAS read / write permissions to the win\temp directory.

4. This is not a Web app. It is a Windows forms app.

Still receiving the following error:

"An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient, or the

Crystal Reports runtime is not installed correctly. Please install the appropriate

(CRRedist.msi) containing the correct version of the Crystal Reports runtime (x86,

x64 or Itanium) required.

Please go to http://www.businessobjects.com/support for more information."

Any other suggestions?

Thank You for Your time and patients with this issue.

Have A Great Evening...

Mike

C:-)

former_member183750
Active Contributor
0 Kudos

Process Monitor will be a great idea. Let's give that one a try.

- Ludek

0 Kudos

Mike,

Ludek did not indicate but CR XI is not supported in VS 2010. Only version is CR for VS 2010, you can get it [here|http://www.sdn.sap.com/irj/boc/crystalreports-dotnet?rid=/webcontent/uuid/5072b9d3-b530-2e10-b191-ff2fe6d395de] [original link is broken];:

It should work but if there are any issues nothing we can to fix them. CR XI R2 SP6 and CR 2008 SP 6 and above are the only versions support on Windows Vista and Windows 7, 2008 Server should work but not in the platforms.PDF file.

Thank you

Don

Former Member
0 Kudos

Hi Don,

Thanks for the input.

However, I am using Crystal Reports version for Visual Studio 2010.

I installed that from the SAP site (see My original thread).

True the reports were written using Crystal Reports XI. But the reports

work perfectly in Our Development environment - which contain the

Licensed Crystal Reports XI and Visual Studio 2010.

I modified the application to use the references to the Crystal Reports

version for Visual Studio 2010 - the references point to 13.0. I also

modified the report form (windows form) that contains the Crystal

Viewer to use the new viewer (13.0). And like I said, everything

works correctly in the Development environment. No issues.

I do not understand why it is not working with the runtime library on a non development machine.

Ludek,

I am trying to use the Process Monitor. However, I have never used it before. I forgot to mention that

the program is being executed via Cirtix. I do not know if this will cause a problem trying to monitor the

process or not. Please let Me know what I should be looking for.

Also, just for the record, We have several applictaions developed in Visual Studio 2003 that call various

simple Crystal Reports developed in Crystal Reports XI and they all work like a champ via Cirtix!

I really need to get this resolved so that We can upgrade all of Our application from Visual Studio 2003 to 2010.

I appreciate all the help that You Guys are providing.

Please let Me know what I should do next.

Have A Great Evening...

Mike

C:-)

former_member183750
Active Contributor
0 Kudos

This being a Citrix, I put my bottom dollar on permissions...

And yes, ProcMon will work just fine on Citrix.

- Ludek

Former Member
0 Kudos

Good Morning Ludek,

Again, I really appreciate Your followup!

I have to ask You something before I get Our Citrix person involved with the Process Monitor.

As I stated earlier, We currently have several applications that were written in Visual Studio 2003 VB .Net that

are currently successfully executing and displaying the reports that were developed in Crystal Reports XI on

Our Citrix Servers (that I am working on).

Did something change in the 13.0 Crystal Runtime that was provided by SAP for Visual Studio 2010 that would

cause these permission issues? It seems kind of strange to Me.

Is it possible that the two versions of the runtime (11.0 and 13.0) might be confilicting with each

other. They are both installed on Our Test server that I am working with. This server is accessed

through the Critix Servers farm.

Also, when We run the Process Monitor, I assume that We will need to force Our process to run on a particular

Citrix Server and then run the Process Monitor on that Citrix machine. Correct? You never told Me what We should

be looking for when using the Process Monitor. Can You please provide some info on this. Thanks!

Please let Me know what You think.

Have A Great Day...

Thanks,

Mike

C:-)

former_member183750
Active Contributor
0 Kudos

I knew that was going to be the next question. Logical and I should have touched on it in the previous post.

Unfortunately, I am not aware of any changes that would cause these issues. One thing I am sure of, is that the two versions will not conflict with each other - as sure as one can be with computers anyhow...

Run ProcMon on the test server when one of the users is hitting the application. Make sure you filter the ProcMon for the process name as ProcMon tends to make rather large files and limiting the log will make it easier to go through.

Look for "Access Denied" messages on files, folders and registry entries.

Search for anything "Crystal" to see what it attempts to load and where is fails.

Make sure the app is not compiled to "Any CPU". Compile either as 32 or 64 bit, then deploy the correct 32 bit or 64 bit runtime.

Umm, one question. Does the app run if you sit right on the server where the app is installed?

- Ludek

0 Kudos

Hi Mike,

Sorry, I was just reading the subject line and obviously did a too quick of a scan over the rest of the notes.

Something that may be easier to compare runtime is a tool called [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip]. You can run your app on your DEV PC and then on the app server until you have a report open or the error is generated and save both LST files and then use the Difference option, check off the file date and path and then compare.

It will at least tell you if you are loading some other CR version than it should be using.

It may be that Citrix is sharing some older or newer dependency that CR requires or they are simply not available.

Also, this error you are getting now:

"An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate (CRRedist.msi) containing the correct version of the Crystal Reports runtime (x86, x64 or Itanium) required. Please go to http://www.businessobjects.com/support for more information."

always is generated when a 64 BIT OS is trying to run a 32 bit app because the platform is set to AnyCPU.

You are using the CrystalDecisions.Windows.Forms as your viewer and not the ActiveX crviewer.dll?

What happens if you create a NEW simple app that just opens a report with saved data and previews? No subreports or anything except a text box with "Hello World" in it.

Thank you

Don

Former Member
0 Kudos

Good Morning Ludek and Don,

I want to first start out by saying that You both Rock!

I was able to get Crystal Reports XI to launch when running from an application that was compiled under Visual Studio 2010 VB .Net.

It turns out it was a combination of things.

1. The app was originally compiled under Any CPU

2. Settings on the Citrix server - which Our Citrix guru corrected

Once these were done, it worked like a champ!

This is the first time that I ever posted to a Forum for advice on a problem that I was working on

and You both provided execellent advice and made the experience quite pleasurable.

I gave the 10 points to Ludek because He had provided the information that I used to actually correct the problem.

I gave 2 points to Don because He provided helpful information as well, however I did not need to use Don's information

bacause the issue was already resolved. However, I will keep it and use it at a later date if needed.

Thank You both again, and may Father Bless You both with all the desires of You Heart!

Have A Great Day/Week...

Mike

C:-)

former_member183750
Active Contributor
0 Kudos

Thank you Mike

Have a great Easter,

- Ludek

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Ludek,

Thank You so much for the quick reply.

I am trying it right now!

Have A Great Day...

Mike

C:-)

former_member183750
Active Contributor
0 Kudos

See KB [1534393 "Error 1904. Module C:Program FilesSAP BusinessObjects..dtsagent.dll failed to register ..." when installing Crystal Reports for Visual Studio 2010 MSI runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333334333333393333%7D.do].

Umm just an FYI. Typing "Error 1904" in the search box at the top righ corner of this web page will bring up the KB (e.g.; search before posting).

- Ludek