Solved

Problem with .NET loading wrong Crytal Reports runtime during execution

Posted on 2006-07-09
7
222 Views
Last Modified: 2010-04-16
Hi All,

i'm having a very annoying problem that i can't seem to resolve.  On one of our test machiens we installed our C# .NET client software, which, as part of the installer, installs the crystal reports 11.0 runtime environment.  

This laptop has the libraries for Crystal Reports 9.0 installed as well (back when Business Objects was Crystal Decisions).  

.NET won't use the 11.0 libraries.   How can I either tell my app  or .NET to use 11.0 libraries.  I can change this globally on the machine if that is easiest.  Nothing, to my knowledge, cares about 9.0 (I am willing to uninstall it and break something if it does).  

When I examine the loaded libraries using Process Explorer by Sys Internals, i can see when i run the app on my machine, the Crystal Reports libraries loaded on my machine are all coming from the GAC and

c:\program files\common files\Business objects\3.0\

Where as on the bad laptop, they are all coming from the GAC and

c:\program files\common files\Cyrstal Decisions\1.0.  

On both of the machines, i have done a full install of Crystal Reports 11.0 but nothing stopped the bad laptop from loaded the 9.0 libraries.

Any thoughts?
0
Comment
Question by:jjacksn
  • 4
  • 3
7 Comments
 
LVL 11

Accepted Solution

by:
vo1d earned 500 total points
ID: 17067908
in your project path reference folder, setup all crystal reports dlls with specific version = true and copy local = true.
then you will have to deploy your app with the local copied dlls of crystal report, so you won't have to install on every machine the dll's.
0
 
LVL 5

Author Comment

by:jjacksn
ID: 17070903
I see the copy local property , but I do not see the "specific version" property.  Is that property found by clicking on the specific library or the References folder in its properties?

I do see a Strong Name property but i can't change it.
0
 
LVL 11

Expert Comment

by:vo1d
ID: 17074039
which net version do you use?
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 5

Author Comment

by:jjacksn
ID: 17075195
1.1
0
 
LVL 11

Expert Comment

by:vo1d
ID: 17075394
oh, i only have vs2005 installed on my homemachine, will take a look at may workmachine tomorrow. think, that this is a property for net2.0.
i think there is no need for that property because its only net 1.
so give it a try what you have setuped right now.
0
 
LVL 5

Author Comment

by:jjacksn
ID: 17083682
vo1d, this seems to work.  

there is a follow up issue, however.  

the copy local options copies the dlls and creates two xml files with the same name as the libraries minus the .dll part.  these files contain what looks like a list of methods available.  Does these .xml files need to go with the dlls in the deployment?
0
 
LVL 11

Expert Comment

by:vo1d
ID: 17083846
no, that is only the method documentation(for intellisense) for the developers.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question