10 Replies Latest reply: Oct 28, 2013 3:24 PM by James Fulton RSS

Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine

James Fulton
Currently Being Moderated

I am building a windows application on a Windows 2012 server using Visual Studio 2010. I have a simple crystal Report that I load from the local drive I can compile and run the report on the server with no problem however when I deploy it to a windows 7 machine it gets the message

 

 

UNABLE TO INSTALL OR RUN THE APPLICATION. THE APPLICATION REQUIRES THAT ASSEMBLY CRYSTALDECISIONS.REPORTAPPSERVER.COMMONOBJECTMODE

I VERSION 13.0.2000.0 BE INSTALLED IN THE GLOBAL ASSEMBLY CACHE (GAC) FIRST.

PLEASE CONTACT YOUR SYSTEM ADMINISTRATOR

 

I install the Crystal Reports Runtime Engine for .NET Framework 4 (64 Bit)  version 13.0.2.469 and verified it is installed on the system and it still gets the same error message.

 

Not sure what steps I should take next to resolve the problem. The rest of the program works fine, it is just the crystal report that gets the error message.

 

 

Jim

  • Re: Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine
    Ludek Uher
    Currently Being Moderated

    Hello Jim

     

     

    I am not sure if SP 2 (which is what you are installing) supported WIN 7. See if SP 7 will do the trick for you:

     

    http://scn.sap.com/docs/DOC-7824

     

     

     

    - Ludek

    Senior Support Engineer AGS Product Support, Global Support Center Canada

    Follow us on Twitter

    Got Enhancement ideas? Try the SAP Idea Place

    Share Your Knowledge in SCN Topic Spaces

    • Re: Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine
      James Fulton
      Currently Being Moderated

      I installed the support Pac 7 version 13.0.7.x and same error comes up.  I did an uninstall of the old SP 13.2 and rebooted the machine. Did the install, did another reboot and tested it... same error message

      Below is part of the detail error exception message

       

      System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

         at CrystalDecisions.Shared.SharedUtils..cctor()

         --- End of inner exception stack trace ---

         at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()

         at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()

         at CrystalDecisions.Shared.LocaleManager..ctor()

         at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()

         at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()

         at Eliminations2013.ElimReviewbyDate.InitializeComponent() in E:\Eliminations2013\Eliminations2013\ElimReviewbyDate.Designer.vb:line 25

         at Eliminations2013.ElimReviewbyDate..ctor()

         at Eliminations2013.frmMain.btnRevElim_Click(Object sender, EventArgs e) in E:\Eliminations2013\Eliminations2013\frmMain.vb:line 19

         at System.Windows.Forms.Control.OnClick(EventArgs e)

         at System.Windows.Forms.Button.OnClick(EventArgs e)

         at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

         at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

         at System.Windows.Forms.Control.WndProc(Message& m)

         at System.Windows.Forms.ButtonBase.WndProc(Message& m)

         at System.Windows.Forms.Button.WndProc(Message& m)

         at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

         at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       

      Jim

      • Re: Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine
        Ludek Uher
        Currently Being Moderated

        Recompile the app as 64 bit. not "Any CPU". Also, enter this search string; crystal net log4net' into the search box in the top right corner and check out the KBAs that come up.

         

         

         

        - Ludek

        • Re: Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine
          James Fulton
          Currently Being Moderated

          Changed it to 64 bit, that did not work same error message. Not sure where the "Search Box" is located. I looked around . I assume it is somewhere in the properties under the compile advance options?

           

          Jim

          • Re: Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine
            Ludek Uher
            Currently Being Moderated

            Please see the screenshot re. seach box:

             

            Untitled.png

             

            - Ludek

            • Re: Crystal Reports 2011 and Visual Studio 2010 on Windows 7 Machine
              James Fulton
              Currently Being Moderated

              Ludek,

               

              Ok did what you said Recompiled the App as a 64 bit and from the article delete any reference to the log4net.dll in the bin directory of the project cleaned the project rebuild and published the app and got the error listed below on the publish and if I went to the directory from the client machine and tried to run it. I also did the entire process as the article said about setting it to any cpu and followed the steps and got the error message

               

               

              CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.

                 at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)

                 at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)

                 at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

                 --- End of inner exception stack trace ---

                 at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

                 at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

                 at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

                 at Eliminations2013.ElimReviewbyDate.CrystalReportViewer1_Load(Object sender, EventArgs e) in E:\Eliminations2013\Eliminations2013\ElimReviewbyDate.vb:line 7

                 at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnCreateControl()

                 at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

                 at System.Windows.Forms.Control.CreateControl()

                 at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)

                 at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)

                 at System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)

                 at System.Windows.Forms.Control.SetVisibleCore(Boolean value)

                 at System.Windows.Forms.Form.SetVisibleCore(Boolean value)

                 at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

                 at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

                 at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)

                 at Eliminations2013.frmMain.btnRevElim_Click(Object sender, EventArgs e) in E:\Eliminations2013\Eliminations2013\frmMain.vb:line 20

                 at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

                 at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

                 at System.Windows.Forms.Control.WndProc(Message& m)

                 at System.Windows.Forms.ButtonBase.WndProc(Message& m)

                 at System.Windows.Forms.Button.WndProc(Message& m)

                 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

               

              Any suggestions?

               

              Jim

Actions