on 07-30-2012 9:16 PM
Hi,
I am receiving 2 warnings when creating a setup project for a VB2010 solution. The 2 warnings are:
Warning 1 The 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' item selected requires 'Microsoft.Net.Framework.2.0'. Select the missing prerequisite in the Prerequisites Dialog Box or create a bootstrapper package for the missing prerequisite. S:\Projects\Development\VB.net\Phantom\SourceCode\Setup\Setup.vdproj Setup
Warning 2 The 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' item selected requires 'Microsoft.Data.Access.Components.2.8'. Select the missing prerequisite in the Prerequisites Dialog Box or create a bootstrapper package for the missing prerequisite. S:\Projects\Development\VB.net\Phantom\SourceCode\Setup\Setup.vdproj Setup
My project is a .NET 4 project so I am unsure why Crystal is requesting .NET 2.0. When I look in the prerequisites for the setup project, .NET 2.0 is not an available option.
'Microsoft.Data.Access.Components.2.8, is not available either. Why is this error being show? Will it stop my program form working when installed?
Re. Framework.
- There are some DLLs that require framwork 2.0. E.g.; crdb_adoplus.dll - used for ADO .NET Datasets.So, framework 2 is needed, irrespective of actual DLLs used.
Re. Microsoft.Data.Access.Components.2.8' crystal net
- Only a guess; some dbs we may be asked to connect to will still need to use Microsoft.Data.Access.Components.2.8, thus the dependency(?).
- Ludek
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The project I am currently testing with contains 1 form with a crystal report viewer and a blank crystal report. All of the requirements/prerequisites are coming from the fact that I added a crystal report to the project.
From your explanation, I probably won't need .NET 2.0 or MDAC 2.8 for my real project to work correctly as I don't use linq or anything that would require the MDAC components. (isn't MDAC for Microsoft Access connectivity?)
So it seems that these warning will appear for anyone who attempts to use crystal reports with Visual Studio 2010. Maybe SAP could put a notice on the download page that MDAC 2.8 will be required. But I'm not sure how to get around the .NET 2.0 issue. Seems like it's still going to throw a warning, unless I can include .NET 2.0 and 4.0 as prerequisites at the same time. Isn't this something SAP should address?
Hi Phil,
As Ludek indicated CR has a dependency on 2.0 framework, no way around this but you don't need to include, we don't and just a dependency CR requires. You don't have to include in your redist package and MS likely would prefer you don't. As for MDAC we don't have any dependencies on it so not sure why it is indicating it is required.
Try building a new project with all of the includes you have in your may project but this time don't include ANY Crystal parts and see what or why or if MS is still asking for those dependencies.
What our instlaler does is checks if the 2.0 Framework is installed if it then it moves on if not then it pop's up a messag eindicating to install it first.
We'll do a quick test here to confirm.
Don
Hi Don,
My test project (which has the 2 Crystal warnings) only has a
single form with a crystal report viewer and a blank crystal report. There’s no
code at all. The MDAC warning is definitely coming from Crystal
I was doing a little more research and came across a very
similar post on this forum. It directed me to the product.xml file in the
C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0
folder.
It has the following entry.
<RelatedProducts>
<DependsOnProducd Code="Microsoft.Net.Framework.2.0" />
<DependsOnProduct Code="Microsoft.Data.Access.Components.2.8" />
</RelatedProducts>
So this is why visual studio is requesting MDAC 2.8 and .Net
2.0. Even though it's not needed (by me or my code) something inside Crystal
reports uses potions of it for purposes not related to my project.
It's just one of those things that might come back to haunt me
at some point. It would be nice if the project would compile without errors or
warnings like it did in Visual Studio 2008 (on a previous project).
Hi Phil,
Neither Ludek or I have a product.xml file on our test machines and I am possitive we DO not have a dependency on MDAC. Where did that file come from?
Check your app References folder, I'm thinking it may be pointing to an older version of VS or CR locations.
Do you have any other verison of CR or VS on this PC?
Because CR for VS 2010 will support 2.0 to 4.0 framework I son't see why it would be specifying 2.0 framework. That is part of the Project and should not be in the boot strapper.
What happens if you simply rename that xml file, delete it or move from your project?
Don
[UPDATE]
I take it back, there is one included in the Clickonce package and it does specify both 2.0 and MDAC. ClickOnce assumes nothing is install so it includes everything. If that's the case then use it, if you don't want it then use the MSI or Merge Modules.
We will check with the Build why MDAC is include, I'm curious now myself.
Thanks again
Don
Ok, I can confirm that this file has nothing to do with the redistributables. The product.xml file is created when I install the CrystalReports for Visual Studio add on. I checked the file content and the same requirements are listed.
-<RelatedProducts>
<DependsOnProduct Code="Microsoft.Net.Framework.2.0"/>
<DependsOnProduct Code="Microsoft.Data.Access.Components.2.8"/>
</RelatedProducts>
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.