cancel
Showing results for 
Search instead for 
Did you mean: 

cannot load crystal report

Former Member
0 Kudos

Hi,

Am using vs.net 2005 and I created a program in vb.net. while deploying it I cannot load the crystal report in the deployed computer.. I am getting following error. Please help me to solve it..

--

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

  1. System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

File name: 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'

   at Alisoftpremium.ledger.InitializeComponent()

   at Alisoftpremium.ledger..ctor()

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

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

   at Alisoftpremium.My.MyProject.MyForms.Create__Instance__[T](T Instance)

   at Alisoftpremium.My.MyProject.MyForms.get_ledger()

   at Alisoftpremium.MDI.LedgerToolStripMenuItem1_Click(Object sender, EventArgs e)

   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

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

   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

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

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

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

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

   at System.Windows.Forms.ToolStripDropDown.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)

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

Alisoftpremium

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase: file:///C:/Program%20Files/Ali/alisoftest/Alisoftpremium.exe

----------------------------------------

  1. Microsoft.VisualBasic

    Assembly Version: 8.0.0.0

    Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

  1. System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

  1. System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5492 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

  1. System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

  1. System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

  1. System.Runtime.Remoting

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5488 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

----------------------------------------

  1. System.Data

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

  1. System.Transactions

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

  1. System.EnterpriseServices

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debuggin

  1. enabled.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

You either did  not deploy the CR runtime, or you deployed an incorrect runtime. For the correct runtime downloads see:

The runtime files are also on your dev computer.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow me on Twitter

Former Member
0 Kudos

Thanks dear friend.. I have done the same yesterday and solve that issue but now I am getting another issue as follows...

System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.

----------------

************* Exception Text **************

  1. System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.

   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 Alisoftpremium.ledger.Button1_Click(Object sender, EventArgs e)

   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)

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

Alisoftpremium

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase: file:///C:/Program%20Files/ali/alisoftest/Alisoftpremium.exe

----------------------------------------

  1. Microsoft.VisualBasic

    Assembly Version: 8.0.0.0

    Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

  1. System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

  1. System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5492 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

  1. System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

  1. System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

  1. System.Runtime.Remoting

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5488 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

----------------------------------------

  1. System.Data

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

  1. System.Transactions

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

  1. System.EnterpriseServices

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

  1. CrystalDecisions.Windows.Forms

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.52001.1823

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll

----------------------------------------

  1. CrystalDecisions.Shared

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.52001.1823

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Shared.dll

----------------------------------------

  1. CrystalDecisions.ReportSource

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll

----------------------------------------

  1. System.Web

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

----------------------------------------

  1. CrystalDecisions.CrystalReports.Engine

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.52001.1823

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.2.3600.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.CommLayer

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.ClientDoc

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.DataSetConversion

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.52001.1823

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.DataDefModel

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.Controllers

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.CubeDefModel

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll

----------------------------------------

  1. CrystalDecisions.ReportAppServer.ReportDefModel

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.52001.1823

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll

----------------------------------------

  1. CrystalDecisions.KeyCode

    Assembly Version: 10.2.3600.0

    Win32 Version: 10.2.9700.0

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.KeyCode/10.2.3600.0__692fbea5521e1304/CrystalDecisions.KeyCode.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

  1. enabled.

For example:

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

..........

Pic is follows.....kindly help me

former_member183750
Active Contributor
0 Kudos

Typically, that error is quite accurate. E.g.; the path to the report is either not correct, or the directory it is in does not have the correct permissions (read / write). Also, ensure that the temp directory (%TEMP%) has read / write permissions.

Finally if all of the above check out, what OS are you deploying the app to?

- Ludek

Former Member
0 Kudos

Hi

-This is a windows application  I have created. An accounting software in 32 bit.

-This was made in VB.net 2005

- the database is sql server

- I have given path in crystal report form window  as follows ( in the computer where I have created this program)

CR.Load("C:\Users\User\Documents\Visual Studio 2005\Projects\Alisoftpremium\Alisoftpremium\DB.rpt")


- while making setup program i have added merge modules CrystalReportsRedust2005x86.msm only


- The name deployed computer is user1 and software installed path is C:\Program Files\Ali\alisoftest


- I can  open all crystal reports in my computer where am developing it

- am really an infant in this programming

- You can see the program I have created in youtube... my small steps to programming - YouTube


My doubts here are,


1. do I need to change the path of report while am creating the setup program according to the name and path of program where am installing it? ( eg:-CR.Load("C:\Users\User\Documents\Visual Studio 2005\Projects\Alisoftpremium\Alisoftpremium\DB.rpt") to CR.Load("C:\Program Files\Ali\alisoftest\DB.rpt")


2. the database also in different location in the deployed computer. But I can connect it by app.config  file


3. I have created crystal report by using standard format by using report wizard. Do I need to change anything there? since the database connection made for designing crystal report will be different from developing computer and deployment computer right? if yes how can I change it since from developing computer only i can make the changes and If I try to change the path I could not redesign again because of wrong path according to developing computer.


4. I can see only CrystalReportsRedust2005x86.msm in merge modules folder which is related to crystal reports. Do I need download and add any other files? If yes where I can get it.


5. If the directory it is in does not have the correct permissions- How can I give permission?

6. How can I check temp directory (%TEMP%) has read / write permissions?

7. The os am using in both computers are windows7


if you see my video in YouTube (my small steps to programming - YouTube) you can understand that I have almost finished everything. But because of crystal report i cannot deploy to another computer... So please kindly help me out..do you have any live chat facility??


Thanks in advance




former_member183750
Active Contributor
0 Kudos

Hi Ali

re. question 1; No

re. question 2: that is fine. What is the database and how are you connecting to it (ODBC, OLEDB, etc,)

re. question 3; No

re. question 4; That is fine.

re. question 5; right click on the folder, go to properties and give it read / write permissions.

re. question 6: Same as (5) above

re. question 7; yes but is is WIN 2003, 2008, vista, etc., etc.

As a further test, you may want to consider seeing how the report behaves in the CR designer. You can download a free 30 day eval here:

SME Free Trials | SME Software | SAP

Install that on the problem computer, open the report there, see if it connects to the database and runs.

- Ludek

Former Member
0 Kudos

Hi,

1. I am using SQL server - OLEDB connection for SQL server

2. When I am giving permission , some tick marks are in grey color and not black color which I cannot change

Ali MK

former_member183750
Active Contributor
0 Kudos

Please create a new Discussion.

And if the original query in this thread is answered, please set it as "Answered".

Perhaps also have a peek at the

- Ludek

Answers (0)