cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report / VB.Net Install Error

Former Member
0 Kudos

Ok..Got a VB.NET 2010 Development Machine 64 bit operating system, as well as Crystal Reports Developer Version 14.0.4.738. Creating an application that calls crystal reports. I compile and publish the program and install it on the development Machine and it works great.. I go to do the web install on a a windows 7 machine either 32 bit or 64 bit or a windows 8 machine 64 bit and soon as I say install it pops up with

Unable to install or run the application. The application Requires that assembly CrystalDecisions.ReportAppServer.DataDefModel Version 13.0.2000.0 be installed in the global Assembly Cache (GAC) first.

Please Contact your System Administrator .

I go to my preferences in Visual Studio and Verify that the ReportAppServer.DataDefModel version 13.0.2000.0 is being loaded into the project and it still fails....

This may be and old problem that has been fixed but I do not get to write much code anymore so bear with me please

Thanks,

Jim

Message was edited by: James Fulton Update, I change the Target CPU to Any Still no luck I also Added imported names spaces of CrystalDecisions.CrystalReports.ViewerObjectModel and CrystalDecisions.ReportAppserver and no luck same error. I did run the CRRuntime_64bit_13_0_1.msi on the receiving machine (the one I am trying to install on) also .. no luck.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Don,

Worked on this over the weekend to no avail. What I am doing is making a shortcut to the production machine from his desktop. I tested it and it works.. we are now at the mercy of the network should not be a problem I will monitor it..

Thanks for you help, I will consider this case closed...

Jim

Answers (1)

Answers (1)

0 Kudos

Hi James,

You never said you downloaded the version 13 installer into Visual Studio. CR 2011 does not install the version 13 runtime.

So go here to get it:

Install the first link into Visual Studio DEV PC. The other links are the redist packages to be deployed on the work stations.

Next is depending on what you want your IIS AppPool to be running in depends on if you set it to run in 32 of 64 bit mode.

Use SP 13, you appear to be using SP 1.

Don

Former Member
0 Kudos

Thanks Don, got it to install but when running it does not display the drop down boxes in the selection criteria for crystal.

your mentioned the other links for the desktops. I am installing the Click once 32/64 for support pack 13 on the client correct?

Jim

0 Kudos

Hi James,

I don't know what you mean by Drop down boxes? when Installing CR into you VS PC it should just check dependencies and install with the final option to install the 64 bit runtime.

When running the installer on a redist PC there should not be any options to select, the complete package should simply install.

So if your IIS AppPool is going to run in 32 bit mode then set it accordingly and use the 32 bit MSI, if AppPool is in 64 bit the 64 bit runtime.

I actually prefer the MSI, it's complete and I know it works.

Remember also in 64 bit mode all dependencies must also be installed, Printers, DB Clients etc.

And you need to share the IIS \temp folder so CR can read/write to it, needs full control.

Don

Former Member
0 Kudos

Don,

Apparently I mucked up something.. This was in production and it stopped working. so I spent last night restoring and putting things back to normal.. I am going to try to write a completely new program for these reports so when I am done I may be back to square one.. I do not do this very often so please bear with me... I can close this out and start a new one if i run into a problem if you wish.. Just let me know...

Jim

Message was edited by: James Fulton Don, Started over per my last mention. Here is where I start running into problems and its prob. due to the fact that I do not do this very often. I have the app built on the server.. I have a form in my vb.net  program (very simple pgm) it has a crystal viewer from the tool bar placed on it. I have not even done the code to call the report yet. The form just fires up and has an exit button. I save it compile and publish it and it tells me it need CrystalDecisions.ReportAppserver.CommonObjectModel version 13.0.2000 in the GAC so I go back to the program references and add the .net reference to it. I get two warnings both tell me the following : Warning     1     A reference was created to embedded interop assembly 'CrystalDecisions.ReportAppServer.CommonObjectModel' because of an indirect reference to that assembly from assembly 'CrystalDecisions.CrystalReports.Engine'. Consider changing the 'Embed Interop Types' property on either assembly.     HellerMain2015 I ignore them compile and publish and try to install on two workstations one windows7 64 bit and one windows 8. The prior publish worked fine its when I added the Crystal form I started to get these errors. When I publish for the second time I get Unable to install need the CrystalDecisions.ReportAPpServer.DataDefModel Version 13.0.2.000.0 to be installed in the GAC... Each time I add a reference needed it wants another. I can spend hours chasing it down. Is there a way to add all that is needed either on the application on the server or to the workstation? The server has the patch you told me to add. Support Pack 13 and the workstation has SAP crystal reports runtime engine for .NET Framework 64 bit... Am I missing something???? Jim

0 Kudos

Hi Jim,

Make sure you do set the Framework to full and not client and set the CPU to x86

Once you do that then when you add the Crystal Viewer to your form it should add the Engine and Shared to the project and then you should have the basics needed.

But now that you are using RAS then simply all of these and you should be good to go:

using System.Reflection;

using System.Runtime.InteropServices;

using System;

using System.IO;

using System.Xml;

using System.Drawing;

using System.Drawing.Printing;

using System.Collections;

using System.ComponentModel;

using System.Windows.Forms;

using System.Data;

using System.Threading;

using System.Diagnostics;

using System.Globalization;

using ADODB;  

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

using CrystalDecisions.ReportAppServer;

using CrystalDecisions.ReportAppServer.ClientDoc;

using CrystalDecisions.ReportAppServer.Controllers;

using CrystalDecisions.ReportAppServer.ReportDefModel;

using CrystalDecisions.ReportAppServer.CommonControls;

using CrystalDecisions.ReportAppServer.CommLayer;

using CrystalDecisions.ReportAppServer.CommonObjectModel;

using CrystalDecisions.ReportAppServer.ObjectFactory;

using CrystalDecisions.ReportAppServer.Prompting;

using System.Data.OleDb;

using CrystalDecisions.ReportAppServer.DataSetConversion;

using CrystalDecisions.ReportAppServer.DataDefModel;

using CrystalDecisions.ReportSource;

using CrystalDecisions.Windows.Forms;

using System.Runtime.InteropServices;

using CrystalDecisions.ReportAppServer.XmlSerialize;

It doesn't matter if you add them all....

And you cannot add them to your redist package manaully, on the work stations simply run the CR 32 bit MSI

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_13.zip

Don

Former Member
0 Kudos

Don,

Ok did what you said and now I get that assembly Microsoft.VisualStudio.shell.interop.8.0 be installed int he gac first.

Cannot locate that reference at all.

This is fustrating all this program does right now is run, you click on a box it opens another form and that is it.. it worked fine until i added the crystal report viewer to one of the forms. I take that off and it installs and runs.. (does nothing be it installs and runs...)

Jim

Message was edited by: James Fulton Don started over again and it works great until I add a new windows form and place the crystal report viewer on it.. then I start to get the GAC Messages.. Jim