15 Replies Latest reply: Oct 11, 2013 3:02 PM by Ludek Uher RSS

CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0

michael michael
Currently Being Moderated

Hi,

 

Prior to using the latest release of Crystal Reports I didn't get any errors when compiling my Visual Studio 2010 installation project but since the CR upgrade I keep getting the following error messages:

 

WARNING: 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.
WARNING: 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.

As per one of the articles I read, I have the following statement in the App.config module:

  <startup useLegacyV2RuntimeActivationPolicy="true"></startup>

 

Even though I get the above error message the package still compiles but when I try to use it to install my package I also get the following error messages:

Installing using command 'C:\Windows\system32\msiexec.exe' and parameters ' -I "C:\Users\PC\AppData\Local\Temp\VSD1B4C.tmp\Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_1.msi" -q '
Will attempt to elevate process.
Process exited with code 1603

 

I could really use some help here so any comment would be greatly appreciated.

 

Thanks,

     turbo56

 

Edited by: turbo56 on Apr 14, 2011 11:50 PM

  • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
    Ludek Uher
    Currently Being Moderated

    Re. 1603. Google "Process exited with code 1603". It is not a CR issue...

     

    Re legacy Mode - only needed if you are using .NET Datasets or redirecting to lower version assemblies (which you do not want to do).

     

    Re. the inital errors; make sure you are using the full 4.0 framework, not the client 4.0 framework.

     

    Do not compile to "Any CPU".

     

    - Ludek

    • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
      michael michael
      Currently Being Moderated

      Thanks for the prompt response Ludek.

       

      The reason I thought 'code 1603' was related to CR was because it came immediately after the attempt to install the latest "CRRuntime_32bit_13_0_1.msi" runtime,

      Installing using command 'C:\Windows\system32\msiexec.exe' and parameters ' -I "C:\Users\PC\AppData\Local\Temp\VSD1B4C.tmp\Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_1.msi" -q

      While I was using the earlier "CRRuntime_32bit_13_0.msi" all was Ok, but I'll Google that to see what comes back.

       

      I removed the legacy statement from App.config but can't see any difference.

      <startup useLegacyV2RuntimeActivationPolicy="true"></startup>

       

      As for the 4.0 Framework, I'm using "SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit) Ver 13.0.0.99". Is that correct?

       

      /Mike

       

      Edited by: turbo56 on Apr 15, 2011 2:14 AM

      • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
        Ludek Uher
        Currently Being Moderated

        As for the 4.0 Framework, I'm using "SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit) Ver 13.0.0.99". Is that correct?

         

        That is fine, though I'd recommend moving to SP 1:

        SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads

         

        More info:

        SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads

         

         

        Re. install. Understood. I Googled the error and it looked like there is a fair amount of "generic" info on it. See if any of it helps.

         

        - Ludek

        • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
          michael michael
          Currently Being Moderated

          Thanks for that.

          I'll do what you suggested and see how I go.

           

          Cheers.

          • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
            michael michael
            Currently Being Moderated

            Hi Ludek,

             

            a) I uninstalled 'Sap Crystal Reports, version for Visual Studio 2010' and reinstalled the one I found in the link you sent me so now 'Control Panel > Programs and Features' shows version 13.0.1.220 however the 'c:\windows\assembly' folder shows 'CrystalDecisions.CrystalReports.Engine - 13.0.2000.0'. Does that make sense?

             

            b) I found in 'SAP Crystal Reports .NET SDK Developer Guide' where it says the version of CR for VS2010 should be 'SAP Crystal Reports for Visual Studio 2010 (.NET 4.0 Framework)  14.0.2000.0'. I assume the document with '14.0..' is wrong, is that correct, i.e. what should the revision be?

             

            c) I am still getting the warnings (below) so any suggestions would be most welcome as I'm stuck.

             

            WARNING: 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.
            WARNING: 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.

             

            d) I saved "CRRuntime_32bit_13_0_1.msi and CRRuntime_64bit_13_0_1.msi" files in "C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\CrystalReports 4.0" folder, is that correct?

             

            e) I also saw "CRRuntime_14_0_32bit.exe and CRRuntime_14_0_64bit.exe" in 'C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\CrystalReports 4.0' folder (not sure how they got there but the file date is from August 2010 so it may have been me but I don't remember), is that correct?

             

             

             

            Regards,

            Mike

            • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
              Ludek Uher
              Currently Being Moderated

              a) Yes that does make sense. Assembly does not change - file version does

               

              b) The version 14.x is incorrect - the assemblies are version 13.x

               

              c) Do you get the same warning if you create a brand new app?

               

              d) Does not matter where the MSI file is saved.

               

              e) "CRRuntime_14_0_32bit.exe and CRRuntime_14_0_64bit.exe";  are from the Bata of CRVS2010. This is worrisome as it looks like there was a Beta of CRVS2010 on this computer and the computer has still not been thoroughly cleaned up. See KB 1535325 for details.

               

               

               

              - Ludek

              • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
                Ludek Uher
                Currently Being Moderated

                Asked around here what else we can try (my comments in italics);

                 

                 

                It sounds like heu2019s trying click-once, but from his command line, its hard to say. If this is the case, try the MSI

                 

                Click once has the following prerequisites in the product.xml file:

                 

                  <RelatedProducts>

                    <DependsOnProduct Code="Microsoft.Net.Framework.2.0"; />

                    <DependsOnProduct Code="Microsoft.Data.Access.Components.2.8"; />

                  </RelatedProducts>

                 

                I think the runtimes he found in the bootstrapper were Beta 2 installers (Beta1 didn't have installers). They should be deleted.  If he originally deployed 14.0 runtime, there might be problems deploying 13.1 runtimes.

                thus my suggestion in my previous post re. complete clean up on that computer

                 

                The MSIEXEC command line seems odd (are you running it from a temp user folder?  Is this actually what you're entering or is it a command line you copied from a click-once log file?  Also, does it make a diff if you run as admin?

                 

                 

                - Ludek

                • Re: CR Runtime Engine for .NET Framework 4.0 requires Framework 2.0
                  michael michael
                  Currently Being Moderated

                  Hi Ludek,

                   

                  In the last couple of days I've been able to try the build on a new PC that's only had the latest VS2010 and CR installed, from the links you gave me, and I still get the same result when I try to build the project. Also just to clarify a few issues:

                   

                  a)  I'm not using click-once and

                   

                  b)  On the new PC there's no "CRRuntime_14_0_32bit.exe and CRRuntime_14_0_64bit.exe" in 'C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\CrystalReports 4.0', as expected.

                   

                  Just to mention one other thing that I should have mentioned at the start. Since upgrading my project from .NET 2.0 to 3.5 and now 4.0 I've also been getting two other errors but without any noticable consequence (that's why I didn't do anything about them until I got some time to resolve them) so I overlooked to mention them earlier. The code below shows all the errors that I'm getting:

                   

                  ------ Rebuild All started: Project: MyProject, Configuration: Debug Any CPU ------
                  vbc : warning BC40059: A reference was created to embedded interop assembly 'CrystalDecisions.ReportAppServer.ClientDoc' because of an indirect reference to that assembly from assembly 'CrystalDecisions.CrystalReports.Engine'. Consider changing the 'Embed Interop Types' property on either assembly.
                  vbc : warning BC40059: A reference was created to embedded interop assembly 'CrystalDecisions.ReportAppServer.ClientDoc' because of an indirect reference to that assembly from assembly 'CrystalDecisions.ReportSource'. Consider changing the 'Embed Interop Types' property on either assembly.
                    MyProject -> C:\Users\michael\Documents\Visual Studio 2010\Projects\MyProject\MyProject SW\MyProject\bin\Debug\MyProject.exe
                  ------ Starting pre-build validation for project 'MyProject Installer' ------ 
                  ------ Pre-build validation for project 'MyProject Installer' completed ------
                  ------ Rebuild All started: Project: MyProject Installer, Configuration: Debug ------
                  Building file 'C:\Users\michael\Documents\Visual Studio 2010\Projects\MyProject\MyProject Installer SW\MyProject Installer\Debug\MyProject-Debug-V1.1.377.msi'...
                  WARNING: 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.
                  WARNING: 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.

                   

                  I no longer consciously use any component that needs .NET 2.0 but I'm unable to locate where it's been referenced so maybe if that was resolved I wouldn't be getting the last two errors.

                   

                  Once again sorry for overlooking to mention that sooner.

                   

                  Thanks,

                       Mike

Actions